clear<T> method

  1. @override
void clear<T>(
  1. StateRef<T> ref
)
override

Removes the state referenced by ref from the scope.

Implementation

@override
void clear<T>(StateRef<T> ref) {
  onClear?.call(ref);
  _states.remove(ref.key);
}