RestartableTimer constructor
- Duration _duration,
- ZoneCallback _callback
Creates a new timer.
The _callback
function is invoked after the given _duration
. Unlike a
normal non-periodic Timer, _callback
may be called more than once.
Implementation
RestartableTimer(this._duration, this._callback)
: _timer = Timer(_duration, _callback);