setStateListener method
Sets a StateChangeListener that gets triggered on every state change.
Implementation
void setStateListener(StateChangeListener listener) {
_stateChangeListener = listener;
}
Sets a StateChangeListener that gets triggered on every state change.
void setStateListener(StateChangeListener listener) {
_stateChangeListener = listener;
}