EdgeDraggingAutoScroller class

An auto scroller that scrolls the scrollable if a drag gesture drags close to its edge.

The scroll velocity is controlled by the velocityScalar:

velocity = (distance of overscroll) * velocityScalar.

Constructors

EdgeDraggingAutoScroller(ScrollableState scrollable, {VoidCallback? onScrollViewScrolled, required double velocityScalar})
Creates a auto scroller that scrolls the scrollable.

Properties

hashCode int
The hash code for this object.
no setterinherited
onScrollViewScrolled VoidCallback?
Called when a scroll view is scrolled.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollable ScrollableState
The Scrollable this auto scroller is scrolling.
final
scrolling bool
Whether the auto scroll is in progress.
no setter
velocityScalar double
The velocity scalar per pixel over scroll.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startAutoScrollIfNecessary(Rect dragTarget) → void
Starts the auto scroll if the dragTarget is close to the edge.
stopAutoScroll() → void
Stop any ongoing auto scrolling.
toString() String
A string representation of this object.
inherited

Operators

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