Chunk<T> class

Used to keep track of state when paginating

Constructors

Chunk({required List<OrderBy>? orderBy, List<Clause>? clauses, int limit = defaultLimit})
Chunk.last({required List<T> data, required DocumentSnapshot<T?>? cursor, required List<OrderBy>? orderBy, List<Clause>? clauses, int limit = defaultLimit})
Chunk.next({required List<T> data, required DocumentSnapshot<T?>? cursor, required List<OrderBy>? orderBy, List<Clause>? clauses, int limit = defaultLimit})

Properties

clauses List<Clause>?
final
cursor DocumentSnapshot<T?>?
final
data List<T>
final
hashCode int
The hash code for this object.
no setterinherited
limit int
final
orderBy List<OrderBy>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status ChunkStatus
final

Methods

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

defaultLimit → const int