showBodyScrim method
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;
}
}