Operation class

A single operation in a transaction (aligned with InstantDB core format)

Annotations
  • @JsonSerializable()

Constructors

Operation.new({required OperationType type, required String entityType, required EntityId entityId, Map<String, dynamic>? data, Map<String, dynamic>? options})
const
Operation.fromJson(Map<String, dynamic> json)
factory
Operation.legacy({required OperationType type, required EntityId entityId, String? attribute, dynamic value, dynamic oldValue})
factory

Properties

attribute String?
no setter
data Map<String, dynamic>?
final
entityId EntityId
final
entityType String
final
hashCode int
The hash code for this object.
no setterinherited
options Map<String, dynamic>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type OperationType
final
value → dynamic
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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