ExpressionRelevant class

A RelevantCondition that evaluates an expression string against the result.

Supported expressions:

  • IN value - result contains the value
  • NOT_IN value - result does not contain the value
  • FOR_ALL - always matches (used to converge paths)
  • = value / != value - exact match / not equal
ExpressionRelevant(
  identifier: GenericIdentifier(id: "next_step"),
  expression: "IN selected_option",
  formName: "optional_form",  // for cross-form navigation
)
Inheritance

Constructors

ExpressionRelevant({required Identifier identifier, String? formName, required String expression})
Creates an expression-based condition.

Properties

formName String?
Optional form name for cross-form navigation.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
identifier Identifier
The target step to navigate to when this condition is met.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isValid(dynamic result) bool
Returns true if the given result satisfies this condition.
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