Schedules a microtask to notify listeners of state change.
Usage:
@Input()
set title(String newValue) {
setState(() => _title = newValue);
}
Source
void setState(void fn()) { fn(); deliverStateChanges(); }
Schedules a microtask to notify listeners of state change.
Usage:
@Input()
set title(String newValue) {
setState(() => _title = newValue);
}
void setState(void fn()) { fn(); deliverStateChanges(); }