PagingState<PageKeyType, T extends PagingItem> class

The current item's list, error, and next page key for a paginated widget.

Available extensions
Annotations

Constructors

PagingState({PageKeyType? nextPageKey, List<T>? itemList, dynamic error, bool? isRefreshing, bool? needRequestData})
const

Properties

error → dynamic
The current error, if any.
final
hashCode int
The hash code for this object.
no setteroverride
isRefreshing bool?
final
itemList List<T>?
List with all items loaded so far.
final
needRequestData bool?
final
nextPageKey → PageKeyType?
The key for the next page to be fetched.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status PagingStatus

Available on PagingState<dynamic, PagingItem>, provided by the PagingStatusExtension extension

The current pagination status.
no setter

Methods

copyWith({List<T>? itemList, dynamic error, PageKeyType? nextPageKey, bool? isRefreshing, bool? needRequestData}) PagingState<PageKeyType, T>
The copyWith method for creating a copy of PagingState with modified properties
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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