Countdown<T> constructor Null safety

Countdown<T>(
  1. {required T event,
  2. required DateTime completion,
  3. CountdownRepeat? repeats,
  4. Map<T, Duration> withMilestones = const {}}
)

Creates a new countdown

Implementation

Countdown({
  required this.event,
  required DateTime completion,
  this.repeats,
  this.withMilestones = const {},
})  : _completion = completion,
      completion$ = completion.obs,
      initialCompletion = completion,
      completed = BehaviorSubject.seeded(false) {
  _init();
}