InteractionDefinition class abstract

Base interface for all interaction definitions.

An interaction represents a unit of work that can be executed with optimistic updates, rollbacks, and API calls. Implementations include GenericInteraction for simple data-based interactions and ClassInteraction for typed payload interactions.

Implementers

Constructors

InteractionDefinition()

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique identifier for this interaction type.
no setter
payload → Object?
Gets the payload object (if any) for class-based interactions.
no setter
payloadType → Type?
Gets the payload type for type checking.
no setter
priority → int
Priority level for execution order (higher = more priority).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsOptimistic → bool
Whether this interaction supports optimistic updates.
no setter
tags → Set<String>
Tags for categorizing interactions.
no setter
timeout → Duration?
Timeout duration for the interaction (optional).
no setter

Methods

createRollback() → InteractionDefinition?
Creates a rollback interaction (optional).
getValidationErrors() → List<String>
Gets validation error messages.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes the interaction data to JSON format.
toString() → String
A string representation of this object.
inherited
validate() → bool
Validates the interaction data.

Operators

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