InfiniteScrollPosition class

A class that tracks the scroll position and manages the visibility of the loading indicator for infinite scroll pagination.

Inheritance

Constructors

InfiniteScrollPosition()

Properties

bouncingPixels double
The extra scroll offset caused by iOS-style bouncing/overscroll, And used to sync the loading indicator position with the bouncing effect.
getter/setter pair
extent double
The total scrollable extent (e.g., size of loading indicator)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isVisibleNotifier ValueNotifier<bool>
The notifier indicating whether the loading indicator is visible.
final
pixels double
Gets the current scroll offset in pixels.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
viewHeight double
The height of the visible viewport.
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object notifies its listeners.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
override
setPixels(double newPixels) double
Sets the scroll position to newPixels, clamped within valid bounds And, returns the difference between the old and new scroll position.
setPixelsByDelta(double delta) double
Adjusts the scroll position by delta, clamped within valid bounds returns the difference applied after clamping.
toString() String
A string representation of this object.
inherited

Operators

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