setState method

void setState(
  1. dynamic state
)

Implementation

void setState(state) {
  this.state = state;
  notifyListeners();
}