Listener<T> typedef

void Listener (
  1. 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);