timerPeriodic method

Timer timerPeriodic(
  1. void callback(
    1. Timer timer
    )
)

需要手动释放timer

Implementation

Timer timerPeriodic(void Function(Timer timer) callback) =>
    Timer.periodic(this, (Timer time) => callback(time));