SmartPaginationLoaded<T> class

Inheritance
Implemented types

Constructors

SmartPaginationLoaded({required List<T> items, required List<T> allItems, required PaginationMeta meta, required bool hasReachedEnd, DateTime? lastUpdate, bool isLoadingMore = false, Exception? loadMoreError, DateTime? fetchedAt, DateTime? dataExpiredAt, String? activeOrderId})

Properties

activeOrderId String?
The ID of the currently active sort order (null if no sorting applied)
final
allItems List<T>
The list of items in the current pagination state.
final
dataExpiredAt DateTime?
Timestamp when data will expire (null if no expiration configured)
final
fetchedAt DateTime?
Timestamp when data was initially fetched (for data age tracking)
final
hashCode int
The hash code for this object.
no setteroverride
hasReachedEnd bool
Whether the pagination has reached the end of available data.
final
isLoadingMore bool
Whether the pagination is currently loading more items
final
items List<T>
final
lastUpdate DateTime
The timestamp of the last update to the pagination state.
final
loadMoreError Exception?
Error that occurred while loading more items (if any)
final
meta PaginationMeta
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({List<T>? items, List<T>? allItems, bool? hasReachedEnd, PaginationMeta? meta, DateTime? lastUpdate, bool? isLoadingMore, Exception? loadMoreError, DateTime? fetchedAt, DateTime? dataExpiredAt, String? activeOrderId}) SmartPaginationLoaded<T>
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.
override