onIntersection method

  1. @override
Stream<IntersectionObserverEntry> onIntersection(
  1. Element element
)

A stream which fires when element intersects with the scroll viewport.

NOTE: This requires IntersectionObserver. Check supportsIntersectionObserver from feature_detector.dart before using.

Implementation

@override
Stream<IntersectionObserverEntry> onIntersection(Element element) =>
    _scrollHost!.onIntersection(element);