listener property
void Function(S state)
listener
final
Callback for side effects when the state changes.
Implementation
final void Function(S state) listener;
Callback for side effects when the state changes.
final void Function(S state) listener;