updateShouldNotify method

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

Checks if update should notify other widgets about change. For this checks if scope changed.

Implementation

@override
bool updateShouldNotify(InheritedWidget oldWidget) {
  if (oldWidget is DimeFlutter) {
    return oldWidget.scope != scope;
  } else {
    return oldWidget != this;
  }
}