updateShouldNotify method

  1. @override
bool updateShouldNotify(
  1. NotifierT previous,
  2. NotifierT 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(NotifierT previous, NotifierT next) => true;