DragHandleAutoScroller class
Auto-scrolls a given ScrollPosition
based on the current position of
a drag handle near the boundary of the scroll region.
Clients of this object provide access to a desired ScrollPosition
and
a viewport RenderBox
. Clients also update this object whenever the
drag handle moves. Then, this object starts/stops auto-scrolling the
given ScrollPosition
as needed, based on how close the drag handle
position sits to the edge of the scrollable boundary.
Constructors
- DragHandleAutoScroller({required TickerProvider vsync, required AxisOffset dragAutoScrollBoundary, required ScrollPosition getScrollPosition(), required RenderBox getViewportBox()})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
ensureOffsetIsVisible(
Offset offsetInViewport) → void -
Jumps to a scroll offset so that the given
offsetInViewport
is visible within the viewport boundary. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startAutoScrollHandleMonitoring(
) → void -
Prepares this auto-scroller to automatically scroll its
ScrollPosition
based on calls to updateAutoScrollHandleMonitoring. -
stopAutoScrollHandleMonitoring(
) → void - Stops any on-going auto-scrolling and removes references there were setup in startAutoScrollHandleMonitoring.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateAutoScrollHandleMonitoring(
{required Offset dragEndInViewport}) → void -
Starts/stops auto-scrolling as necessary, based on the given
dragEndInViewport
andviewportHeight
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited