Listener<T> typedef
Listener<T> =
void Function(T state)
A listener that can be added to a StateNotifier using StateNotifier.addListener.
This callback receives the current StateNotifier.state as parameter.
Implementation
typedef Listener<T> = void Function(T state);