DecisionChoiceQuestion class final
A pick-one-from-a-fixed-list question (choice): the criteria map's
KEYS are the allowed answers, its values describe each option.
- Inheritance
-
- Object
- DecisionQuestion
- DecisionChoiceQuestion
Constructors
-
DecisionChoiceQuestion({required Object? instructions, required Map<
String, Object?> criteria}) -
Creates a choice question;
criteriamust be non-empty.const
Properties
-
criteria
→ Map<
String, Object?> -
The allowed answers keyed by option id (e.g.
{payments: "..."}).final - hashCode → int
-
The hash code for this object.
no setterinherited
- instructions → Object?
-
What the model is asked to decide (free-form instructions).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The wire
typediscriminator.no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
The wire form:
{type, instructions, criteria?}.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited