stopTimer method

void stopTimer()

关闭定时器

Implementation

void stopTimer() {
  try {
    timer.cancel();
  } catch (_) {}
}