Skip to content

RPTextAnswerFormat

Class representing an Answer Format that lets participants input a number (integer)

Inheritance
Annotations

Constructors

RPTextAnswerFormat.fromJson

RPTextAnswerFormat.fromJson(
  1. Map<String, dynamic> json
)

RPTextAnswerFormat

RPTextAnswerFormat({
  1. String? hintText,
  2. bool autoFocus = false,
  3. bool disableHelpers = false,
})

Properties

autoFocus

bool autoFocus
getter/setter pair

disableHelpers

bool disableHelpers
getter/setter pair

Force the keyboard not to have any suggestions, corrections, or auto completions This is important for writing tests, in which the speed and accuracy is important

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

hintText

String? hintText
getter/setter pair

Hint text shown in the TextField

questionType

RPQuestionType get questionType
override
set questionType (RPQuestionType value)
inherited

The question type of this answer. Should be implemented / overwritten in the subclasses.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.