GetTimer.countDown constructor
GetTimer.countDown(
- Duration? duration, {
- Duration period = const Duration(seconds: 1),
- bool extendable = true,
- GetTimerCallback? onCancel,
- GetTimerCallback? onTick,
Implementation
GetTimer.countDown(
Duration? duration, {
this.period = const Duration(seconds: 1),
this.extendable = true,
this.onCancel,
this.onTick,
}) : countDown = true,
duration = duration?.let((it) => it! - period) ?? Duration.zero,
tag = "CountDown" {
elapsed = this.duration;
}