listener property

void Function(S state) listener
final

Callback for side effects when the state changes.

Implementation

final void Function(S state) listener;