setState method
- dynamic state,
- {dynamic notify = true}
Implementation
void setState(state, {notify = true}) {
if (this.state != state) {
this.state = state;
if (notify) {
notifyListeners();
}
}
}
void setState(state, {notify = true}) {
if (this.state != state) {
this.state = state;
if (notify) {
notifyListeners();
}
}
}