RecordingDeliveryMethod class

A recording DeliveryMethod: records every request and returns a settable StepOutcome. Set throwNext to prove the throwing-delivery → supervision path. Delivers nothing anywhere.

Implemented types

Constructors

RecordingDeliveryMethod({String id = 'fake-delivery', StepOutcome outcome = const Ok({'pr_url' : 'https://example.test/pr/1'}), bool throwNext = false})
Creates the recorder; deliver returns outcome unless throwNext.

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
This method's id — recorded under grid.result.<nodePath>.delivery (the audit record of HOW the work left the station).
final
outcome StepOutcome
What a delivery resolves to.
getter/setter pair
requests List<DeliveryRequest>
Every request, in call order.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
throwNext bool
When true, a delivery THROWS instead of resolving.
getter/setter pair

Methods

deliver(DeliveryRequest request) Future<StepOutcome>
Actuates delivery for request. Ok optionally carries the RECEIPT (a PR url, an export path), merged into the terminal state=complete write under grid.result.<nodePath>.*. Failed routes the terminal route node to SUPERVISION: a failed delivery NEVER silently advances. A THROWING method is treated exactly as Failed (the per-work fail-closed posture).
override
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