updateFlow<T> method
Helper to update typed state with a function
Implementation
void updateFlow<T>(AirStateKey<T> key, T Function(T current) updater) {
final current = getFlow(key);
setFlow(key, updater(current));
}
Helper to update typed state with a function
void updateFlow<T>(AirStateKey<T> key, T Function(T current) updater) {
final current = getFlow(key);
setFlow(key, updater(current));
}