PaginatedState<T, Q> class
An state of paginated search. Contains information regarding which page we are on, what the pageSize of each page is, what the current type of this state is, its loaded items and more.
Constructors
-
PaginatedState({required int page, required int pageSize, required PaginatedStateType type, required bool hasNoMoreItems, required List<
T> items, Q? query, Object? error, StackTrace? stackTrace}) -
const
Properties
- error → Object?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNoMoreItems → bool
-
final
-
items
→ List<
T> -
final
- lastItemOrNull → T?
-
no setter
- page → int
-
final
- pageSize → int
-
final
- query → Q?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
final
- type → PaginatedStateType
-
final
Methods
-
copyWith(
{int? page, int? pageSize, PaginatedStateType? type, bool? hasNoMoreItems, List< T> ? items, Object? error, StackTrace? stackTrace, Q? query}) → PaginatedState<T, Q> -
getInitialSearchState(
{required Q? query}) → PaginatedState< T, Q> -
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