repeat method

void repeat(
  1. int totalTime
)

重设倒计时总时间

Implementation

void repeat(int totalTime) {
  cancel();
  this.totalTime = totalTime;
  run();
}