cancelDelayed method

void cancelDelayed()

Cancels any scheduled action.

This can be useful if the action is no longer needed.

Implementation

void cancelDelayed() {
  _timer?.cancel();
  _timer = null;
  _action = null;
}