clearInterval function

void clearInterval(
  1. Timer? timer
)

Implementation

void clearInterval(Timer? timer) {
  if (timer != null) {
    timer.cancel();
  }
}