setState method
Updates the state
to the provided state
.
setState does nothing if the instance has been closed.
Implementation
@override
void setState(State state) {
if (_stateController.isClosed) return;
onChange(Change<State>(currentState: this.state, nextState: state));
_state = state;
_stateController.add(_state);
}