DehydratedQuery class final

One serializable query plus an optional in-memory pending channel.

Constructors

DehydratedQuery({required QueryKey<Object?> key, required Map<String, Object?> state, required DateTime dehydratedAt, required Map<String, Object?> meta, Future<Object?>? pending})
Creates a dehydrated query entry.
const
DehydratedQuery.fromJson(Map<String, Object?> json)
Decodes a query from JSON-compatible data.
factory

Properties

dehydratedAt → DateTime
The server time at which this entry was created.
final
hashCode → int
The hash code for this object.
no setterinherited
key → QueryKey<Object?>
The query's cache key.
final
meta → Map<String, Object?>
User metadata associated with the query.
final
pending → Future<Object?>?
Used by server streaming; deliberately omitted from toJson.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → Map<String, Object?>
The serialized query state.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Encodes this query as JSON-compatible data.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited