showBodyScrim method

void showBodyScrim(
  1. bool value,
  2. double animationValue
)

Updates the state of the body scrim.

This method is used to show or hide the body scrim and to set the animation value.

Implementation

void showBodyScrim(bool value, double animationValue) {
  if (_showBodyScrim != value) {
    setState(() {
      _showBodyScrim = value;
    });
  }
  if (_bottomSheetScrimAnimationController.value != animationValue) {
    _bottomSheetScrimAnimationController.value = animationValue;
  }
}