clear method

void clear({
  1. required bool doOnListen,
  2. required T value,
})

Implementation

void clear({
  required bool doOnListen,
  required T value,
}) {
  if (doOnListen) {
    _onListenRun(value);
  }
  _hasValue = false;
  _timer?.cancel();
  _timer = null;
}