reset method

void reset([
  1. T? value
])

Implementation

void reset([T? value]) {
  if (isActive) {
    complete(value);
    _delegate = Completer<T>();
  } else if (_isStarted) {
    _delegate = Completer<T>();
  }
  _isStarted = false;
}