EntitySnapshot class final

One entity record as the store holds it.

Constructors

EntitySnapshot({required String key, required String type, required String id, required int version, required int frameAt, required Map<String, Object?> fields, required List<String> refs, required List<String> dependents})
Creates an entity snapshot.
const

Properties

dependents → List<String>
Query keys that reached it. Filled only by entity(key).
final
fields → Json
A bounded copy of the fields. References appear as {'__ref': key}.
final
frameAt → int
Frame clock at the last frame write, 0 if none.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The id.
final
key → String
Type:id.
final
refs → List<String>
Entity keys this record points at, one hop.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
The typename.
final
version → int
Bumps only when the data moved.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
The JSON form.
toString() → String
A string representation of this object.
inherited

Operators

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