W3cubDocs

/Dart 2

IntersectionObserver constructor

IntersectionObserver(IntersectionObserverCallback callback, [ Map options ])

Implementation

factory IntersectionObserver(IntersectionObserverCallback callback,
    [Map options]) {
  if (options != null) {
    var options_1 = convertDartToNative_Dictionary(options);
    return IntersectionObserver._create_1(callback, options_1);
  }
  return IntersectionObserver._create_2(callback);
}

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