run method

void run(
  1. VoidCallback action
)

Implementation

void run(VoidCallback action) {
  _t?.cancel();
  _t = Timer(duration, () {
    _t = null;
    action();
  });
}