RunConditions class
Common run conditions for systems.
These factory methods create reusable run conditions based on common patterns.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
always(
) → RunCondition - Creates a condition that always returns true.
-
and(
List< RunCondition> conditions) → RunCondition - Creates a condition that combines multiple conditions with AND logic.
-
never(
) → RunCondition - Creates a condition that always returns false.
-
not(
RunCondition condition) → RunCondition - Creates a condition that negates another condition.
-
onEvent<
T> () → RunCondition - Creates a condition that runs only when a specific event type has events.
-
or(
List< RunCondition> conditions) → RunCondition - Creates a condition that combines multiple conditions with OR logic.
-
resource<
T> (bool predicate(T)) → RunCondition - Creates a condition that checks a predicate against a resource.
-
resourceExists<
T> () → RunCondition - Creates a condition that requires a resource to exist.