updateState method
void
updateState(
- T updater(
- T
Update the state using a function
Implementation
void updateState(T Function(T) updater) {
_trackDirectAccess();
setState(updater(_state));
}
Update the state using a function
void updateState(T Function(T) updater) {
_trackDirectAccess();
setState(updater(_state));
}