updateShouldNotify method

  1. @override
bool updateShouldNotify(
  1. T previous,
  2. T next
)
override

Called when a provider is rebuilt. Used for providers to not notify their listeners if the exposed value did not change.

Implementation

@override
bool updateShouldNotify(T previous, T next) {
  // TODO test that updateShouldNotify is applied
  return _notifierNotifier.result!.requireState
      // ignore: invalid_use_of_protected_member
      .updateShouldNotify(previous, next);
}