onStateChanged method

void onStateChanged(
  1. S oldState,
  2. S currentState
)

this method is called when the state has been changed

Implementation

void onStateChanged(S oldState, S currentState) {}