mutateState method
- @mustCallSuper
- @protected
- T newState
This method changes the _state
and adds events to onStateChanged
Implementation
@mustCallSuper
@protected
void mutateState(T newState) {
_state = newState;
if (!isDisposed) {
_onStateChangedController.add(_state);
_onStateChangedControllerWithLatest.add(state);
}
}