run method
Implementation
void run(VoidCallback action) {
if (_timer?.isActive == true) {
_timer?.cancel();
_timer = null;
}
_timer = Timer(
Duration(milliseconds: milliseconds),
action,
);
}
void run(VoidCallback action) {
if (_timer?.isActive == true) {
_timer?.cancel();
_timer = null;
}
_timer = Timer(
Duration(milliseconds: milliseconds),
action,
);
}