state property

State get state

Implementation

State get state => _state;
  1. @protected
set state (State newState)

Updates the State and notify to listeners and rebuild the widgets

state must be different of the current state

Implementation

@protected
set state(State newState) {
  _update(newState);
}