FixedRouteCapability class
A RouteCapability that returns a FIXED verdict — the offline route stand-in every routing test drives the router with.
- Inheritance
-
- Object
- Capability
- RouteCapability
- FixedRouteCapability
Constructors
- FixedRouteCapability(RouteVerdict verdict)
-
Creates a route that always returns
verdict.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verdict → RouteVerdict
-
The verdict this route always emits.
final
Methods
-
createAllocation(
AllocationContext ctx) → Allocation -
The default Allocation for a route (ADR-0009 Decision 4/6) —
RouteAllocation.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
route(
TreeContext context, StepArgs args) → Future< RouteVerdict> -
Decides the verdict. Read ambient values from
contextat ENTRY (the effect verb —getInheritedSeedOfExactType); after every await, check StepArgs.cancel before touching the context again. A THROWING body routes to supervision as a Failed (the per-work fail-closed posture, ADR-0008 Decision 10) — never an unhandled zone error.override -
teardown(
StepArgs args) → Future< void> -
Idempotent cleanup on unmount. Defaults to a no-op. Dispose-path: NO tree
context (a lookup there would throw).
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited