ScrollActivity class abstract

Base class for scrolling activities like dragging and flinging.

See also:

Implementers

Constructors

ScrollActivity(ScrollActivityDelegate _delegate)
Initializes delegate for subclasses.

Properties

delegate ScrollActivityDelegate
The delegate that this activity will use to actuate the scroll view.
no setter
hashCode int
The hash code for this object.
no setterinherited
isScrolling bool
Whether performing this activity constitutes scrolling.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldIgnorePointer bool
Whether the scroll view should ignore pointer events while performing this activity.
no setter
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.
no setter

Methods

applyNewDimensions() → void
Called when the scroll view that is performing this activity changes its metrics.
dispatchOverscrollNotification(ScrollMetrics metrics, BuildContext context, double overscroll) → void
Dispatch an OverscrollNotification with the given metrics and overscroll.
dispatchScrollEndNotification(ScrollMetrics metrics, BuildContext context) → void
Dispatch a ScrollEndNotification with the given metrics and overscroll.
dispatchScrollStartNotification(ScrollMetrics metrics, BuildContext? context) → void
Dispatch a ScrollStartNotification with the given metrics.
dispatchScrollUpdateNotification(ScrollMetrics metrics, BuildContext context, double scrollDelta) → void
Dispatch a ScrollUpdateNotification with the given metrics and scroll delta.
dispose() → void
Called when the scroll view stops performing this activity.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.
toString() String
A string representation of this object.
override
updateDelegate(ScrollActivityDelegate value) → void
Updates the activity's link to the ScrollActivityDelegate.

Operators

operator ==(Object other) bool
The equality operator.
inherited