IntersectionObserver constructor
IntersectionObserver({})
Implementation
factory IntersectionObserver({
JsWrapper? root,
String rootMargin = '0px',
String scrollMargin = '0px',
List<double> threshold = const <double>[],
}) => IntersectionObserver.fromJsObject(
js.IntersectionObserver(
_callback.toJS,
js.IntersectionObserverInit(
root: root?.jsObject,
rootMargin: rootMargin,
scrollMargin: scrollMargin,
threshold: threshold.toJS,
),
),
);