UpdateShouldNotify<T> typedef Null safety

bool UpdateShouldNotify<T>(
  1. T previous,
  2. T current
)

A function that returns true when the update from previous to current should notify listeners, if any.

See also:

Implementation

typedef UpdateShouldNotify<T> = bool Function(T previous, T current);