updateShouldNotify method

  1. @override
bool updateShouldNotify(
  1. covariant GlassModalSheetStateProvider oldWidget
)
override

Returns true when any field of info has changed.

Implementation

@override

/// Returns true when any field of [info] has changed.
bool updateShouldNotify(GlassModalSheetStateProvider oldWidget) {
  return info.state != oldWidget.info.state ||
      info.progress != oldWidget.info.progress ||
      info.isExpanded != oldWidget.info.isExpanded ||
      info.submergedBottom != oldWidget.info.submergedBottom;
}