PeriodicTimer constructor

PeriodicTimer(
  1. Duration interval,
  2. FutureOr<void> function(
      )
    )

    Creates a periodic timer and starts the next tick asynchronously.

    Implementation

    PeriodicTimer(this.interval, this.function) {
      Timer.run(_tick);
    }