Entity class

A datastore Entity

An entity is identified by a unique key and consists of a number of properties. If a property should not be indexed, it needs to be included in the unIndexedProperties set.

The properties field maps names to values. Values can be of a primitive type or of a composed type.

The following primitive types are supported: bool, int, double, String, DateTime, BlobValue, Key

It is possible to have a List of values. The values must be primitive. Lists inside lists are not supported.

Whether a property is indexed or not applies to all values (this is only relevant if the value is a list of primitive values).

Constructors

Entity(Key key, Map<String, Object?> properties, {Set<String> unIndexedProperties = const <String>{}})

Properties

hashCode int
The hash code for this object.
no setterinherited
key Key
final
properties Map<String, Object?>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unIndexedProperties Set<String>
final

Methods

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.
inherited