Skip to content

RPDoubleAnswerFormat

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

Inheritance
Annotations

Constructors

RPDoubleAnswerFormat.fromJson

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

RPDoubleAnswerFormat

RPDoubleAnswerFormat({
  1. required double minValue,
  2. required double maxValue,
  3. String? suffix,
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

maxValue

double maxValue
getter/setter pair

The maximum value of the range. The participant can not proceed if the number is outside the range.

minValue

double minValue
getter/setter pair

The minimum value of the range. The participant can not proceed if the number is outside the range.

questionType

RPQuestionType get questionType
override
set questionType (RPQuestionType value)
inherited

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

suffix

String? suffix
getter/setter pair

The text to show after the input field. If null then no text is shown.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.