ReadyValidContract class
Static behavioral promises and dependency permissions for a ready/valid channel.
- Annotations
Constructors
- ReadyValidContract({required bool validMayDependOnReady, required bool readyMayDependOnValid, bool validMustRemainAssertedWhileStalled = false, bool payloadMustRemainStableWhileStalled = false})
-
Creates ready/valid behavioral metadata.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- payloadMustRemainStableWhileStalled → bool
-
Whether payload must remain stable until a stalled offer is accepted.
final
- readyMayDependOnValid → bool
-
Whether ready is permitted to depend combinationally on valid.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validMayDependOnReady → bool
-
Whether valid is permitted to depend combinationally on ready.
final
- validMustRemainAssertedWhileStalled → bool
-
Whether valid must remain asserted until a stalled offer is accepted.
final
Methods
-
copyWith(
{bool? validMayDependOnReady, bool? readyMayDependOnValid, bool? validMustRemainAssertedWhileStalled, bool? payloadMustRemainStableWhileStalled}) → ReadyValidContract - Returns a copy with selected axes replaced.
-
mayFormDependencyCycleWith(
ReadyValidContract peer) → bool -
Whether this provider may wait for ready while
peermay wait for valid. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
satisfies(
ReadyValidContract required) → bool -
Whether this actual contract satisfies all
requiredrestrictions and guarantees. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
requireComposable(
{required ReadyValidContract provider, required ReadyValidContract consumer, required String providerName, required String consumerName}) → void - Rejects a direct provider-to-consumer composition that can form a combinational valid/ready cycle.
Constants
- irrevocable → const ReadyValidContract
- A valid-first contract with stable valid and payload while stalled.
- readyAndValid → const ReadyValidContract
- A contract in which ready and valid are computed independently.
- readyThenValid → const ReadyValidContract
- A contract in which valid may wait for ready.
- unconstrained → const ReadyValidContract
- A contract with no dependency restrictions or stall guarantees.
- validThenReady → const ReadyValidContract
- A contract in which ready may wait for valid.