SwiftFuturePagination<T> class
Pagination helper for SwiftFuture
Constructors
-
SwiftFuturePagination({required Future<
List< loadPage(int page, int pageSize), int pageSize = 20, int? totalItems, RetryConfig? retryConfig})T> >
Properties
- currentPage → int
-
Current page
no setter
-
future
→ SwiftFuture<
List< T> > -
Current future state
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMore → bool
-
Has more pages
no setter
-
items
→ List<
T> -
All loaded items
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
loadInitial(
) → Future< void> - Load initial page
-
loadNext(
) → Future< void> - Load next page
-
loadPage(
int page) → Future< void> - Load a specific page
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
) → Future< void> - Refresh
-
reset(
) → void - Reset
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited