PageOverscrollPhysics class
Methods
-
adjustPositionForNewDimensions({required ScrollMetrics oldPosition, required ScrollMetrics newPosition, required bool isScrolling, required double velocity})
→ double
-
Describes what the scroll position should be given new viewport dimensions.
inherited
-
applyBoundaryConditions(ScrollMetrics position, double value)
→ double
-
Determines the overscroll by applying the boundary conditions.
inherited
-
applyPhysicsToUserOffset(ScrollMetrics position, double offset)
→ double
-
Used by DragScrollActivity and other user-driven activities to convert
an offset in logical pixels as provided by the DragUpdateDetails into a
delta to apply (subtract from the current position) using
ScrollActivityDelegate.setPixels.
inherited
-
applyTo(ScrollPhysics? ancestor)
→ PageOverscrollPhysics
-
Combines this ScrollPhysics instance with the given physics.
override
-
buildParent(ScrollPhysics? ancestor)
→ ScrollPhysics?
-
If parent is null then return ancestor, otherwise recursively build a
ScrollPhysics that has
ancestor
as its parent.
inherited
-
carriedMomentum(double existingVelocity)
→ double
-
Returns the velocity carried on repeated flings.
inherited
-
createBallisticSimulation(ScrollMetrics position, double velocity)
→ Simulation?
-
Returns a simulation for ballistic scrolling starting from the given
position with the given velocity.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
recommendDeferredLoading(double velocity, ScrollMetrics metrics, BuildContext context)
→ bool
-
Provides a heuristic to determine if expensive frame-bound tasks should be
deferred.
inherited
-
shouldAcceptUserOffset(ScrollMetrics position)
→ bool
-
Whether the scrollable should let the user adjust the scroll offset, for
example by dragging. If allowUserScrolling is false, the scrollable
will never allow user input to change the scroll position.
inherited
-
toleranceFor(ScrollMetrics metrics)
→ Tolerance
-
The tolerance to use for ballistic simulations.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited