SmartPaginationController<T> class
- Implemented types
- Mixed-in types
Constructors
-
SmartPaginationController({required SmartPaginationCubit<
T> cubit, bool isPublic = false, double estimatedItemHeight = 60.0, Duration animationDuration = const Duration(milliseconds: 500), Curve animationCurve = Curves.easeInOut, int maxRetries = 10, List<IPaginationRefreshedChangeListener> ? refreshListeners, List<IPaginationFilterChangeListener< ? filterListeners, List<T> >IPaginationOrderChangeListener< ? orderListeners})T> > -
SmartPaginationController.of({required PaginationRequest request, required PaginationProvider<
T> provider, ListBuilder<T> ? listBuilder, OnInsertionCallback<T> ? onInsertionCallback, VoidCallback? onClear, bool isPublic = false, double estimatedItemHeight = 60, Duration animationDuration = const Duration(milliseconds: 500), Curve animationCurve = Curves.easeInOut, int maxRetries = 10, List<IPaginationRefreshedChangeListener> ? refreshListeners, List<IPaginationFilterChangeListener< ? filterListeners, List<T> >IPaginationOrderChangeListener< ? orderListeners})T> > -
factory
Properties
- animationCurve → Curve
-
The curve of the animation.
final
- animationDuration → Duration
-
The duration of the animation.
final
-
cubit
→ SmartPaginationCubit<
T> -
The cubit exposing the REST-backed pagination state.
no setteroverride
- estimatedItemHeight → double
-
The estimated item height to animate to the specific item.
final
-
filterListeners
→ List<
IPaginationFilterChangeListener< ?T> > -
The filter listeners to the cubit.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPublic → bool
-
If
isPublic = true, the controller will persist even when widgets dispose.final - maxRetries → int
-
The maximum number of retries to animate to the specific item.
final
- observerController ↔ SliverObserverController?
-
SliverObserverController for scroll observation and management.
getter/setter pairoverride-getter
-
orderListeners
→ List<
IPaginationOrderChangeListener< ?T> > -
The order listeners to the cubit.
final
-
refreshListeners
→ List<
IPaginationRefreshedChangeListener> ? -
The refresh listeners to the cubit.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
attachScrollMethods(
{required PaginationScrollToItem scrollToItem, required PaginationScrollToIndex scrollToIndex}) → void -
Attaches the scroll methods that will be used for scrolling operations.
inherited
-
detachScrollMethods(
) → void -
Detaches the scroll methods when the widget is disposed.
inherited
-
dispose(
) → void -
dispose the controller
override
-
disposeScrollMethods(
) → void -
Disposes scroll resources.
inherited
-
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.
inherited
-
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.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited