Timer constructor
Timer(
- double limit, {
- VoidCallback? onTick,
- bool repeat = false,
- bool autoStart = true,
- int? tickCount,
Implementation
Timer(
this.limit, {
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;