ListState class

Ordered entity-id array + pagination metadata. Lists store ids, never embedded entity payloads — cross-view reactivity depends on this invariant.

Constructors

ListState({List<String> ids = const [], int? total, String? nextCursor, String? prevCursor, bool hasNextPage = false, bool hasPrevPage = false, bool isFetching = false, bool isFetchingMore = false, String? error, DateTime? lastFetched, bool stale = false})
const

Properties

error → String?
final
hashCode → int
The hash code for this object.
no setterinherited
hasNextPage → bool
final
hasPrevPage → bool
final
ids → List<String>
final
isFetching → bool
final
isFetchingMore → bool
final
lastFetched → DateTime?
final
nextCursor → String?
final
prevCursor → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stale → bool
final
total → int?
final

Methods

copyWith({List<String>? ids, int? total, String? nextCursor, String? prevCursor, bool? hasNextPage, bool? hasPrevPage, bool? isFetching, bool? isFetchingMore, String? error, DateTime? lastFetched, bool? stale, bool clearError = false, bool clearTotal = false, bool clearNextCursor = false, bool clearPrevCursor = false}) → ListState
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

Constants

empty → const ListState