Skip to content

RPIntegerAnswerFormat

Class representing an Answer Format that lets participants input a integer.

Inheritance
Annotations

Constructors

RPIntegerAnswerFormat.fromJson

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

RPIntegerAnswerFormat

RPIntegerAnswerFormat({
  1. required int minValue,
  2. required int 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

int maxValue
getter/setter pair

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

minValue

int 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.