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