QueryKey<T extends Object?> class final

A deterministic, serializable identity for one server-state resource.

Constructors

QueryKey(String namespace, [Iterable<Object?> parts = const <Object?>[]])
Creates a key from a stable namespace and optional JSON-like parts.
QueryKey.fromJson(Object? value)
Restores a key from its JSON representation.
factory

Properties

canonical → String
Stable canonical form used by caches and persistence.
no setter
dataType → Type
Exact data type associated with this key.
no setter
hashCode → int
The hash code for this object.
no setteroverride
namespace → String
Human-readable resource namespace.
final
parts → List<Object?>
Ordered variables that distinguish resources in the namespace.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startsWith(QueryKey<Object?> prefix) → bool
Whether this key begins with prefix.
toJson() → List<Object?>
JSON representation used by hydration and persistence.
toString() → String
A string representation of this object.
override

Operators

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