AskAnswer class final
The user's answer to one AskQuestion: selected option labels and/or free text.
Constructors
-
AskAnswer({List<
String> selected = const [], String? freeText}) -
Creates an answer with
selectedlabels and/orfreeText.const -
AskAnswer.selection(List<
String> labels) -
Creates an answer from selected option
labels.const - AskAnswer.text(String text)
-
Creates a free-text answer.
const
Properties
- freeText → String?
-
Free-text input, or
nullwhen the user picked from the options only.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selected
→ List<
String> -
Labels of the chosen options (empty when none).
final
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