IntersectionObserver constructor

IntersectionObserver(
  1. IntersectionObserverCallback callback, [
  2. IntersectionObserverInit? options
])

Implementation

factory IntersectionObserver(IntersectionObserverCallback callback,
        [IntersectionObserverInit? options]) =>
    IntersectionObserver._(callback, options ?? undefined);