A scroll behavior for a scrollable widget with linear extent (i.e. that only scrolls along one axis).
- Inheritance
- Object
- ScrollBehavior<double, double>
- ExtentScrollBehavior
Constructors
- ExtentScrollBehavior({double contentExtent: double.INFINITY, double containerExtent: 0.0, @required TargetPlatform platform })
-
Creates a scroll behavior for a scrollable widget with linear extent. We start with an INFINITE contentExtent so that we don't accidentally clamp a scrollOffset until we receive an accurate value in updateExtents.
Properties
- containerExtent → double
-
The linear extent of the exterior of the scrollable widget.
read-only - contentExtent → double
-
The linear extent of the content inside the scrollable widget.
read-only - maxScrollOffset → double
-
The maximum value the scroll offset can obtain.
read-only - minScrollOffset → double
-
The minimum value the scroll offset can obtain.
read-only - hashCode → int
-
Get a hash code for this object.
read-only, inherited - isScrollable → bool
-
Whether this scroll behavior currently permits scrolling.
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
-
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
. -
updateExtents(
{double contentExtent, double containerExtent, double scrollOffset: 0.0 }) → double -
Updates either content or container extent (or both)
-
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.
inherited -
createScrollSimulation(
double position, double velocity) → Simulation -
Returns a simulation that propels the scrollOffset.
inherited -
createSnapScrollSimulation(
double startOffset, double endOffset, double startVelocity, double endVelocity) → Simulation -
Returns an animation that ends at the snap offset.
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