PaginatedQueryState<TData, TParams, TError> class

Constructors

PaginatedQueryState.new({List<TData> data = const [], required TParams parameters, int currentPage = 1, int totalPages = 0, int totalItems = 0, bool hasNextPage = false, PaginatedQueryLoadingState loadingState = PaginatedQueryLoadingState.initial, TError? error})
const

Properties

currentPage int
final
data List<TData>
final
error → TError?
final
hasError bool
no setter
hashCode int
The hash code for this object.
no setterinherited
hasNextPage bool
final
isEmpty bool
no setter
isLoading bool
no setter
isLoadingMore bool
no setter
isNotEmpty bool
no setter
isSuccess bool
no setter
itemCount int
no setter
loadingState PaginatedQueryLoadingState
final
parameters → TParams
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalItems int
final
totalPages int
final

Methods

copyWith({List<TData>? data, TParams? parameters, int? currentPage, int? totalPages, int? totalItems, bool? hasNextPage, PaginatedQueryLoadingState? loadingState, TError? error}) PaginatedQueryState<TData, TParams, TError>
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.
inherited