StickyController class abstract

Coordinates sticky headers and footers, handles their appearance and their in- and out animation.

Implemented types

Constructors

StickyController()

Properties

enableSmoothPushing bool?
Whether elements with the same stickyKey should smoothly "push" each other when they collide, instead of overlapping.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onUpdate Stream<Null>
Fires an event immediately after this StickyController updates the DOM.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usePositionSticky bool
Whether the StickyController is using position: sticky for sticky elements.
no setter

Methods

dispose() → void
Clears resources.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stick(Element element, StickyPosition position, Element? range, {String? stickyClass, String? stickyKey}) → void
Registers the element for sticking to the position (top or bottom), while the given reference element (range) is in the opposite side of the scroll container host.
syncOnScroll() → void
Called by the ScrollHost during the scroll animation, to reposition sticky elements.
toString() String
A string representation of this object.
inherited
trackFloating(Element element) → void
Register the tracking of the element that is already floating in the visual range of the scroll host. Sticky rows will be placed below or above of such elements.
unstick(Element element) → void
Unregisters the element from sticking.
untrackFloating(Element element) → void
Unregisters the tracking of a floating element.

Operators

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