run method
Implementation
run(VoidCallback action) {
if (_timer != null) {
_timer!.cancel();
}
_timer = Timer(duration ?? const Duration(milliseconds: 300), action);
}
run(VoidCallback action) {
if (_timer != null) {
_timer!.cancel();
}
_timer = Timer(duration ?? const Duration(milliseconds: 300), action);
}