start method

void start()

Starts the timer.

Throws an assertion error if endTime is not null.

Implementation

void start() {
  assert(endTime == null, 'endTime must be null to start');
  if (_timer != null) return;
  if (_timer == null || !_timer!.isActive) {
    _startTimer();
  }
}