listener property
void Function(State)
listener
final
This listener should be used for any code which needs to execute
in response to a state
change.
Implementation
final void Function(State) listener;