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