TrackElementInViewport class

Tracks a DOM Element to identify when its visible in viewport.

Constructors

TrackElementInViewport([Duration? checkInterval])

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
track(Element element, {OnElementEvent? onEnterViewport, OnElementEvent? onLeaveViewport, bool periodicTracking = false}) bool
Tracks element if it's visible in viewport.
untrack(Element element) → void
Untracks element.

Operators

operator ==(Object other) bool
The equality operator.
inherited