Key class Null safety

A unique identifier for an entity.

If a key's partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.

Constructors

Key({PartitionId? partitionId, List<PathElement>? path})
Key.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
partitionId PartitionId?
Entities are partitioned into subsets, currently identified by a project ID and namespace ID.
read / write
path List<PathElement>?
The entity path.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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