QueryResult<T> class

Query result with pagination

Constructors

QueryResult({required List<T> data, int? total, int? limit, int? skip, bool hasMore = false})
Creates a new QueryResult instance
const

Properties

data List<T>
Result data
final
hashCode int
The hash code for this object.
no setterinherited
hasMore bool
Whether there are more results
final
limit int?
Limit used
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skip int?
Skip used
final
total int?
Total count (if available)
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

Static Methods

fromJson<T>(Map<String, dynamic> json, T mapper(Map<String, dynamic>)) QueryResult<T>
Creates from JSON with a mapper function
fromJsonRaw(Map<String, dynamic> json) QueryResult<Map<String, dynamic>>
Creates a raw document result