Countdown<T> constructor
Null safety
- {required T event,
- required DateTime completion,
- CountdownRepeat? repeats,
- 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();
}