SmartPaginationScrollToItemMixin mixin

A mixin for SmartPaginationController implementations that adds programmatic scrolling capabilities.

The actual scrolling logic is provided by the UI layer (e.g., PaginateApiView) via the attachScrollMethods function.

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

attachScrollMethods({required SmartPaginationScrollToItem scrollToItem, required SmartPaginationScrollToIndex scrollToIndex}) → void
Attaches the scroll methods that will be used for scrolling operations. This is called automatically by PaginateApiView.
detachScrollMethods() → void
Detaches the scroll methods when the widget is disposed.
disposeScrollMethods() → void
Disposes scroll resources. This should be called in the SmartPaginationController's dispose method.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scrollToIndex(int index, {Duration duration = const Duration(milliseconds: 250), Curve curve = Curves.linearToEaseOut, double alignment = 0, double offset = 0}) Future<bool>
Scrolls to a specific index in the item list.
scrollToItem(String itemPath, {Duration duration = const Duration(milliseconds: 250), Curve curve = Curves.linearToEaseOut, double alignment = 0, double offset = 0}) Future<bool>
Scrolls to a specific item by Path.
toString() String
A string representation of this object.
inherited

Operators

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