PrismScrollTrigger class
Reports when the attached scroll view approaches its end, so the list can trigger the next page load before the user reaches the bottom.
Constructors
- PrismScrollTrigger({double thresholdExtent = 400})
-
Creates a trigger that fires when fewer than
thresholdExtentlogical pixels remain below the viewport.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onNearEnd ↔ void Function()?
-
Invoked when the scroll view is near its end. Guard against duplicate
triggers (e.g. a loading flag) in your callback.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thresholdExtent → double
-
Distance from the end at which onNearEnd fires.
final
Methods
-
attach(
ScrollController controller) → void - Attach to the scroll view's controller.
-
check(
) → void - Runs the near-end check. Called automatically by the attached controller's listener; may also be invoked manually after programmatic scrolls.
-
detach(
) → void - Detach from the current controller.
-
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.
inherited