Timer constructor
Timer({
- required double period,
- VoidCallback? onTick,
- bool repeat = false,
- bool autoStart = true,
- int? tickCount,
Implementation
Timer({
required this.period,
this.onTick,
this.repeat = false,
bool autoStart = true,
this.tickCount,
}) : assert(
tickCount == null || tickCount > 0,
'tickCount must be null or bigger than 0',
),
_running = autoStart;