write<T> abstract method
Updates the value of the state referenced by ref
with state
.
An optional action
can be send to track which method did the update.
Implementation
void write<T>(StateRef<T> ref, T state, [Object? action]);