updateState method
void
updateState(
- T updater(
- T current
Updates the state using a function.
Implementation
void updateState(T Function(T current) updater) {
state = updater(state);
}
Updates the state using a function.
void updateState(T Function(T current) updater) {
state = updater(state);
}