IntersectionOptions class final
Configuration for an intersection observer.
- Annotations
-
- @immutable
Constructors
-
IntersectionOptions({GlobalNodeKey<
Element> ? root, String rootMargin = '0px', List<double> thresholds = const <double>[0], bool freezeOnceVisible = false}) -
Creates intersection options.
const
Properties
- freezeOnceVisible → bool
-
Stops observation after the target first becomes visible.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
root
→ GlobalNodeKey<
Element> ? -
A keyed element used as the intersection root, or null for the viewport.
final
- rootMargin → String
-
A CSS margin applied to the root bounds.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
thresholds
→ List<
double> -
Ratios at which the observer publishes changes.
final
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.
override