Scrollspy class

A scrollspy component, which captures the scroll position on an element and reflects the state on another element.

Inheritance

Constructors

Scrollspy(Element element, {String? target, int offset = 10})
Construct a Scrollspy object and wire it to element.

Properties

$element → ElementQuery
The dquery object of element. Equivalent to $(element).
finalinherited
element Element
The element which component wires to.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
offset int
The offset used when calculating scroll position. For example, if 10,
final
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
refresh() → void
Refresh the cached y-position values of spied items.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

use() → void
Register to use Scrollspy component.
wire(Element element, [Scrollspy? create()?]) Scrollspy?
Retrieve the wired Scrollspy object from an element. If there is no wired