setInterval function

int setInterval(
  1. void callback(),
  2. Duration duration
)

Implementation

int setInterval(void Function() callback, Duration duration) => interop
    .setInterval(js.allowInterop(callback), duration.inMilliseconds)
    .toInt();