IntersectionObserverInit constructor

IntersectionObserverInit({
  1. dynamic root,
  2. String? rootMargin,
  3. dynamic threshold,
})

Implementation

factory IntersectionObserverInit(
        {dynamic root, String? rootMargin, dynamic threshold}) =>
    IntersectionObserverInit._(
        root: root ?? undefined,
        rootMargin: rootMargin ?? '0px',
        threshold: threshold ?? 0);