start method

void start()

Implementation

void start() {
  stop();
  _timer = Timer.periodic(_interval, (timer) {
    _remaining -= _interval;
    value = _remaining;

    if (_remaining <= Duration.zero) {
      stop();
      _onComplete?.call();
    }
  });
}