PagedState<PageKeyType, ItemType> class
PagedState contains the state that is needed to render an infinite scroll list This class can be extended to add more properties specific to particular use cases
Constructors
-
PagedState({List<
ItemType> ? records, dynamic error, PageKeyType? nextPageKey, List<PageKeyType> previousPageKeys = const []}) -
const
Properties
- error → dynamic
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- nextPageKey → PageKeyType?
-
final
-
previousPageKeys
→ List<
PageKeyType> -
final
-
records
→ List<
ItemType> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{List< ItemType> ? records, dynamic error, dynamic nextPageKey = undefined, List<PageKeyType> ? previousPageKeys}) → PagedState<PageKeyType, ItemType> -
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 ==(
dynamic other) → bool -
The equality operator.
override