IntersectionObserver class
provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- IntersectionObserver(IntersectionObserverCallback callback, [IntersectionObserverInit? options])
-
factory
Properties
- disconnect ↔ void Function()
-
Available on IntersectionObserver, provided by the IntersectionObserver$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- observe ↔ void Function(Element)
-
Available on IntersectionObserver, provided by the IntersectionObserver$Typings extension
getter/setter pair - root → Node?
-
Available on IntersectionObserver, provided by the IntersectionObserver$Typings extension
MDN Referenceno setter - rootMargin → String
-
Available on IntersectionObserver, provided by the IntersectionObserver$Typings extension
MDN Referenceno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
takeRecords
↔ List<
IntersectionObserverEntry> Function() -
Available on IntersectionObserver, provided by the IntersectionObserver$Typings extension
getter/setter pair -
thresholds
→ ReadonlyArray<
num> -
Available on IntersectionObserver, provided by the IntersectionObserver$Typings extension
MDN Referenceno setter - unobserve ↔ void Function(Element)
-
Available on IntersectionObserver, provided by the IntersectionObserver$Typings extension
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited