onClear property

void Function<T>(StateRef<T> ref)? onClear
getter/setter pair

Called when clear is called.

Implementation

void Function<T>(StateRef<T> ref)? onClear;