reset method

void reset([
  1. AsyncState<T>? value
])

Reset the signal to the initial value

Implementation

void reset([AsyncState<T>? value]) {
  batch(() {
    this.value = value ?? _initialValue;
    _initialized = false;
    if (completer.isCompleted) completer = Completer<bool>();
  });
}