setStateListener method

void setStateListener(
  1. StateChangeListener listener
)

Sets a StateChangeListener that gets triggered on every state change.

Implementation

void setStateListener(StateChangeListener listener) {
  _stateChangeListener = listener;
}