InfiniteQueryState<T> class

InfiniteQueryState holds the current state of an InfiniteQuery

Inheritance

Constructors

InfiniteQueryState({bool hasReachedMax = false, T? lastPage, List<T>? data, QueryStatus status = QueryStatus.initial, dynamic error, required DateTime timeCreated})
InfiniteQueryState holds the current state of an InfiniteQuery

Properties

data List<T>?
Current data of the query.
finalinherited
error → dynamic
Current error for the query.
finalinherited
hashCode int
The hash code for this object.
no setteroverride
hasReachedMax bool
True if there are no more pages available to fetch.
final
lastPage → T?
The last response from the queryFn
final
length int
The length of the current data list.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status QueryStatus
Status of the previous fetch.
finalinherited
timeCreated DateTime
Timestamp of the query.
finalinherited

Methods

copyWith({List<T>? data, int? currentIndex, QueryStatus? status, bool? hasReachedMax, DateTime? timeCreated, T? lastPage, dynamic error}) InfiniteQueryState<T>
Creates a copy of the current InfiniteQueryState with the given filed replaced.
override
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