WatchCallback<T> typedef
WatchCallback<T> =
void Function(T value, T? oldValue, OnCleanup onCleanup)
Watch callback signature with new value, old value, and cleanup registration.
Implementation
typedef WatchCallback<T> = void Function(
T value,
T? oldValue,
OnCleanup onCleanup,
);