setTimeout function

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

Implementation

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