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}) -
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
- 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<
The current pagination status.dynamic, PagingItem> , provided by the PagingStatusExtension extensionno setter
Methods
-
copyWith(
{List< T> ? itemList, dynamic error, PageKeyType? nextPageKey, bool? isRefreshing}) → 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