An activity that animates a scroll view based on animation parameters.

For example, a DrivenScrollActivity is used to implement ScrollController.animateTo.

See also:

Inheritance

Constructors

DrivenScrollActivity(ScrollActivityDelegate delegate, { @required double from, @required double to, @required Duration duration, @required Curve curve, @required TickerProvider vsync })
Creates an activity that animates a scroll view based on animation parameters. [...]

Properties

done Future<Null>
A Future that completes when the activity stops. [...]
read-only
isScrolling bool
Whether performing this activity constitutes scrolling. [...]
read-only
shouldIgnorePointer bool
Whether the scroll view should ignore pointer events while performing this activity.
read-only
velocity double
If applicable, the velocity at which the scroll offset is currently independently changing (i.e. without external stimuli such as a dragging gestures) in logical pixels per second for this activity.
read-only
delegate ScrollActivityDelegate
The delegate that this activity will use to actuate the scroll view.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

dispatchOverscrollNotification(ScrollMetrics metrics, BuildContext context, double overscroll) → void
Dispatch an OverscrollNotification with the given metrics and overscroll.
dispose() → void
Called when the scroll view stops performing this activity.
toString() String
applyNewDimensions() → void
Called when the scroll view that is performing this activity changes its metrics.
inherited
dispatchScrollEndNotification(ScrollMetrics metrics, BuildContext context) → void
Dispatch a ScrollEndNotification with the given metrics and overscroll.
inherited
dispatchScrollStartNotification(ScrollMetrics metrics, BuildContext context) → void
Dispatch a ScrollStartNotification with the given metrics.
inherited
dispatchScrollUpdateNotification(ScrollMetrics metrics, BuildContext context, double scrollDelta) → void
Dispatch a ScrollUpdateNotification with the given metrics and scroll delta.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
resetActivity() → void
Called by the ScrollActivityDelegate when it has changed type (for example, when changing from an Android-style scroll position to an iOS-style scroll position). If this activity can differ between the two modes, then it should tell the position to restart that activity appropriately. [...]
inherited
updateDelegate(ScrollActivityDelegate value) → void
Updates the activity's link to the ScrollActivityDelegate. [...]
inherited

Operators

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