An interface for controlling the behavior of scrollable widgets.
The type argument T is the type that describes the scroll offset. The type argument U is the type that describes the scroll velocity.
Constructors
- ScrollBehavior({@required TargetPlatform platform })
-
Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.
const
Properties
- isScrollable → bool
-
Whether this scroll behavior currently permits scrolling.
read-only - platform → TargetPlatform
-
The platform for which physics constants should be approximated.
read-only - hashCode → int
-
Get a hash code for this object.
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(
T scrollOffset, T scrollDelta) → T -
Returns the scroll offset to use when the user attempts to scroll from the given offset by the given delta.
-
createScrollSimulation(
T position, U velocity) → Simulation -
Returns a simulation that propels the scrollOffset.
-
createSnapScrollSimulation(
T startOffset, T endOffset, U startVelocity, U endVelocity) → Simulation -
Returns an animation that ends at the snap offset.
-
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.
-
toString(
) → String -
Returns a string representation of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited