reset method

void reset({
  1. T? defaultValue,
})

Resets the state to a default value or the initial value and notifies listeners.

Implementation

void reset({T? defaultValue}) {
  _value = defaultValue ?? _value;
  _listener?.call();
}