Key<T> class

Represents a unique identifier for a Model stored in a datastore.

The Key can be incomplete if it's id is null. In this case the id will be automatically allocated and set at commit time.

Constructors

Key(Key parent, Type? type, T? id)
Key.emptyKey(Partition partition)

Properties

hashCode int
The hash code for this object.
no setteroverride
id → T?
final
isEmpty bool
no setter
parent Key?
Parent of this Key.
no setter
partition Partition
The partition of this Key.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type?
final

Methods

append<U>(Type modelType, {U? id}) Key<U>
cast<U>() Key<U>
Converts Key<dynamic> to Key<U>.
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.
override