IntersectionObserver constructor

  1. @DomName('IntersectionObserver.IntersectionObserver')
  2. @DocsEditable()
IntersectionObserver(IntersectionObserverCallback callback, [ Map options ])

Implementation

@DomName('IntersectionObserver.IntersectionObserver')
@DocsEditable()
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);
}