TextAnswerFormat class
- Inheritance
-
- Object
- AnswerFormat
- TextAnswerFormat
- Annotations
-
- @JsonSerializable()
Constructors
- TextAnswerFormat({int? maxLines, String hint = '', String? validationRegEx = r'^(?!s*$).+', String? question, String? answerType = type})
-
const
-
TextAnswerFormat.fromJson(Map<
String, dynamic> json) -
factory
Properties
- answerType → String?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint → String
-
final
- maxLines → int?
-
final
- question → String?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validationRegEx → String?
-
Regular expression by which the text gets validated
default: '^(?!\s*$).+' that checks if the entered text is empty
to allow any type of an answer including an empty one;
set it explicitly to null.
final
Methods
-
createView(
Step step, StepResult? stepResult) → Widget -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited