BouncingScrollPhysics class

Scroll physics for environments that allow the scroll offset to go beyond the bounds of the content, but then bounce the content back to the edge of those bounds.

This is the behavior typically seen on iOS.

See also:



BouncingScrollPhysics({ScrollPhysics parent })
Creates scroll physics that bounce back from the edge.


dragStartDistanceMotionThreshold double
The minimum amount of pixel distance drags must move by to start motion the first time or after each time the drag motion stopped. [...]
minFlingVelocity double
The minimum velocity for an input pointer drag to be considered a scroll fling. [...]
hashCode int
The hash code for this object. [...]
read-only, inherited
maxFlingVelocity double
Scroll fling velocity magnitudes will be clamped to this value.
read-only, inherited
minFlingDistance double
The minimum distance an input pointer drag must have moved to to be considered a scroll fling gesture. [...]
read-only, inherited
parent ScrollPhysics
If non-null, determines the default behavior for each method. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
spring SpringDescription
The spring to use for ballistic simulations.
read-only, inherited
tolerance Tolerance
The tolerance to use for ballistic simulations.
read-only, inherited


applyBoundaryConditions(ScrollMetrics position, double value) double
Determines the overscroll by applying the boundary conditions. [...]
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. [...]
applyTo(ScrollPhysics ancestor) BouncingScrollPhysics
If parent is null then return a ScrollPhysics with the same runtimeType where the parent has been replaced with the ancestor. [...]
carriedMomentum(double existingVelocity) double
Momentum build-up function that mimics iOS's scroll speed increase with repeated flings. [...]
createBallisticSimulation(ScrollMetrics position, double velocity) Simulation
Returns a simulation for ballistic scrolling starting from the given position with the given velocity. [...]
frictionFactor(double overscrollFraction) double
The multiple applied to overscroll to make it appear that scrolling past the edge of the scrollable contents is harder than scrolling the list. This is done by reducing the ratio of the scroll effect output vs the scroll gesture input. [...]
buildParent(ScrollPhysics ancestor) ScrollPhysics
If parent is null then return ancestor, otherwise recursively build a ScrollPhysics that has ancestor as its parent. [...]
@protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
shouldAcceptUserOffset(ScrollMetrics position) bool
Whether the scrollable should let the user adjust the scroll offset, for example by dragging. [...]
toString() String
Returns a string representation of this object.


operator ==(other) bool
The equality operator. [...]