UpdateShouldNotify<T> typedef
UpdateShouldNotify<T> =
bool Function(T previous, T current)
Whether the widgets that depend on a provider are told that its value
went from previous to current.
Implementation
typedef UpdateShouldNotify<T> = bool Function(T previous, T current);