TypedQueryKey<T> class

A QueryKey that carries an associated result type.

This helps keep query-key usage explicit when working with typed query APIs.

Inheritance

Constructors

TypedQueryKey(String _key, Type _type)
Creates a typed query key from the base key string and type.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
String representation of this query key.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
Runtime type associated with this key.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withParam(String param) TypedQueryKey<T>
Returns a new key by appending a single param.
withParams(List<String> params) TypedQueryKey<T>
Returns a new key by appending all params in order.

Operators

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