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

Constructors

DecisionChoiceQuestion({required Object? instructions, required Map<String, Object?> criteria})
Creates a choice question; criteria must 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 type discriminator.
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