setInterval method

void setInterval(
  1. int interval
)

Set Timer interval (unit: milliseconds).

Implementation

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