EntityRemovalSnapshot class
Complete rollback receipt for an optimistic entity removal.
The receipt belongs to the graph because only the graph knows every list membership and local patch associated with an entity. UI/controller code must not manufacture duplicate entity snapshots outside this boundary.
Constructors
-
EntityRemovalSnapshot({required String type, required String id, required Map<
String, Object?> ? entity, required Map<String, Object?> ? patch, required EntityState? state, required EntitySyncMetadata? syncMetadata, required Map<String, int> listIndexes}) -
const
Properties
-
entity
→ Map<
String, Object?> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
-
listIndexes
→ Map<
String, int> -
Query key to the entity's former index in that ID-only list.
final
-
patch
→ Map<
String, Object?> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → EntityState?
-
final
- syncMetadata → EntitySyncMetadata?
-
final
- type → 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