ReorderableScrollable class
A utility class to manage scrolling behavior for scrollable widgets.
The ReorderableScrollable class allows you to retrieve and control the scroll position, direction, and offsets in both parent and child scrollable contexts. It is particularly useful in scenarios involving nested scrollable widgets or drag-and-drop operations.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isScrollOutside → bool
-
Indicates whether the widget relies on a parent scrollable widget.
no setter
- maxScrollExtent → double?
-
Retrieves the maximum scrollable extent.
no setter
- pixels → double?
-
Retrieves the current scroll position in pixels.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollDirection → Axis?
-
Retrieves the scroll direction of the associated scrollable widget.
no setter
Methods
-
getScrollOffset(
{required bool reverse}) → Offset -
Returns the current scroll offset as an
Offset
. -
jumpTo(
{required double value}) → void - Jumps to a specific scroll position.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context, {required ScrollController? scrollController}) → ReorderableScrollable -
Factory method to create a
ReorderableScrollable
instance.