Skip to content

RPSliderAnswerFormat

Class representing an Answer Format that lets participants use a slider to choose a value.

Inheritance
Annotations

Constructors

RPSliderAnswerFormat.fromJson

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

RPSliderAnswerFormat

RPSliderAnswerFormat({
  1. required double minValue,
  2. required double maxValue,
  3. required int divisions,
  4. String? prefix = '',
  5. String? suffix = '',
})

Properties

divisions

int divisions
getter/setter pair

The divisions of the range.

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.

minValue

double minValue
getter/setter pair

The minimum value of the range.

prefix

String? prefix
getter/setter pair

The prefix displayed before the value.

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 suffix displayed after yhe value.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.