A scroll behavior that lets the user scroll beyond the scroll bounds only when the bounds are disjoint.

Inheritance

Constructors

OverscrollWhenScrollableBehavior({double contentExtent: double.INFINITY, double containerExtent: 0.0, double minScrollOffset: 0.0, @required TargetPlatform platform })

Creates a scroll behavior that allows overscrolling only when some amount of scrolling is already possible.

Properties

isScrollable → bool

read-only
containerExtent → double

The linear extent of the exterior of the scrollable widget.

read-only, inherited
contentExtent → double

The linear extent of the content inside the scrollable widget.

read-only, inherited
hashCode → int

Get a hash code for this object.

read-only, inherited
maxScrollOffset → double

read-only, inherited
minScrollOffset → double

read-only, inherited
platform → TargetPlatform

The platform for which physics constants should be approximated.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

applyCurve(double scrollOffset, double scrollDelta) → double

Returns the scroll offset to use when the user attempts to scroll from the given offset by the given delta.

createScrollSimulation(double position, double velocity) → Simulation

Returns a simulation that propels the scrollOffset.

createSnapScrollSimulation(double startOffset, double endOffset, double startVelocity, double endVelocity) → Simulation

Returns an animation that ends at the snap offset.

inherited
debugFillDescription(List<String> description) → void

Accumulates a list of strings describing the current node's fields, one field per string. Subclasses should override this to have their information included in toString.

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited
updateExtents({double contentExtent, double containerExtent, double minScrollOffset, double scrollOffset: 0.0 }) → double

Updates either content or container extent (or both)

inherited