run method
Run the action after the duration
Implementation
run(VoidCallback action) {
  if (_timer != null && (_timer?.isActive ?? false)) {
    _timer?.cancel();
  }
  _timer = Timer(duration, action);
}Run the action after the duration
run(VoidCallback action) {
  if (_timer != null && (_timer?.isActive ?? false)) {
    _timer?.cancel();
  }
  _timer = Timer(duration, action);
}