requestIdleCallback method

int requestIdleCallback(IdleRequestCallback callback, [ Map options ])

Source

int requestIdleCallback(IdleRequestCallback callback, [Map options]) {
  if (options != null) {
    return _blink.BlinkWindow.instance.requestIdleCallback_Callback_2_(
        this, callback, convertDartToNative_Dictionary(options));
  }
  return _blink.BlinkWindow.instance
      .requestIdleCallback_Callback_1_(this, callback);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Window/requestIdleCallback.html