reset method Null safety

void reset(
  1. [num time = 0.0]
)

Implementation

void reset([num time = 0.0]) {
  pause();
  time = max(time, 0.0);
  if (time != 0.0) {
    _totalTime = time;
    clearAlarms();
  }
  ratio = 1.0;
}