updateShouldNotify method

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

doesn't need to update the widget, because it is only needed to hold the state.

Implementation

@override
bool updateShouldNotify(covariant InheritedWidget oldWidget) => false;