SurveyAnswer class

A single user answer. values holds the comparable tokens used by branching (option ids, or [score], or [text]); comment holds free text such as an "other" option's note.

Constructors

SurveyAnswer({List<String> values = const [], String? comment})
const

Properties

comment String?
final
hashCode int
The hash code for this object.
no setterinherited
isAnswered bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<String>
final

Methods

asNumber() double?
Numeric view of a scalar answer (score / numeric input), or null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited