state property

S state

Implementation

S get state => _state;
  1. @protected
void state=(S newState)

Updates the State and notify to listeners and rebuild the widgets

state must be different of the current state

Implementation

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