clearTimeout method

void clearTimeout(
  1. int timerId
)

Implementation

void clearTimeout(int timerId) {
  // If timer already executed, which will be removed.
  if (_timerMap[timerId] != null) {
    _timerMap[timerId]!.cancel();
    _timerMap.remove(timerId);
  }
}