setInterval method

void setInterval(
  1. int interval
)

set Timer interval. (unit millisecond). 设置Timer间隔.

Implementation

void setInterval(int interval) {
  if (interval <= 0) interval = Duration.millisecondsPerSecond;
  mInterval = interval;
}