Payload class

Forget one memory item. The item's value is discarded and a tombstone takes its place for the maintainer's retention window, so that another device syncing the context learns of the deletion instead of keeping a copy forever.

Annotations
  • @Deprecated('superseded by vta/memory/delete/0.3')

Constructors

Payload({required String contextId, required MemoryKey key, MemoryVersion? expectedVersion, Ext? ext})
const
Payload.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

contextId → String
The VTA context the item lives in.
final
expectedVersion → MemoryVersion?
Optional precondition, on the same terms as vta/memory/put: the live item must be at exactly this version, so a delete cannot discard an edit the caller never saw. Positive only — a create-only precondition on a delete can never be useful, so the schema does not admit 0.
final
ext → Ext?
Ecosystem-defined extension members per SPEC.md §4.5.1.
final
hashCode → int
The hash code for this object.
no setterinherited
key → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

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