onWrite property

void Function<T>(StateRef<T> ref, T state, Object? action)? onWrite
getter/setter pair

Called when write is called.

Implementation

void Function<T>(StateRef<T> ref, T state, Object? action)? onWrite;