ListenerCallback<T> typedef

ListenerCallback<T> = void Function(T state)

A listener that can be added to a NotifierBase using Notifier.addListener.

This callback receives the current Notifier.state as a parameter.

Implementation

typedef ListenerCallback<T> = void Function(T state);