onEvent method

void onEvent(
  1. R bloc,
  2. S? currentState,
  3. S? update, {
  4. String? event,
})

Called when bloc calls the setState method

Implementation

void onEvent(R bloc, S? currentState, S? update, {String? event}) {}