reset method
void
reset({
- 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();
}