TimerAPI constructor

TimerAPI({
  1. num? remaining,
  2. num? total,
  3. State? state,
  4. void pause()?,
  5. void resume()?,
  6. void start(
    1. num
    )?,
  7. void stop()?,
})

Implementation

factory TimerAPI({
  _i2.num? remaining,
  _i2.num? total,
  _i3.State? state,
  void Function()? pause,
  void Function()? resume,
  void Function(_i2.num)? start,
  void Function()? stop,
}) =>
    TimerAPI._(
      remaining: remaining,
      total: total,
      state: state?.name ?? _i7.undefined,
      pause: pause == null ? null : _i5.allowInterop(pause),
      resume: resume == null ? null : _i5.allowInterop(resume),
      start: start == null ? null : _i5.allowInterop(start),
      stop: stop == null ? null : _i5.allowInterop(stop),
    );