EdgeDraggingAutoScroller class Null safety

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 = * velocityScalar.

Constructors

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

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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