RPFormStep class

The RPFormStep class is a concrete subclass of RPQuestionStep, used for presenting multiple questions on a single scrollable page.

Each question in the form is represented by an RPQuestionStep. All the question form steps needs to be answered in order to proceed. The result of an RPFormStep is an RPStepResult that consists further RPStepResults for each question in the form.

Inheritance
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)

Constructors

RPFormStep({required String identifier, required List<RPQuestionStep> steps, required String title, bool optional = false})
RPFormStep.fromJson(Map<String, dynamic> json)
factory

Properties

$type String?
The runtime class name (type) of this object. Used for deserialization from JSON objects.
getter/setter pairinherited
answerFormat RPAnswerFormat
The answer format which describes the format how a question can be answered.
getter/setter pairinherited
fromJsonFunction Function
The function which can convert a JSON string to an object of this type.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
identifier String
A unique identifier of the Step. This identifier connects the Step to its result (RPResult) object.
finalinherited
jsonType String
Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
no setterinherited
optional bool
If set to true the step can be skipped. In that case the result for the step will be null.
getter/setter pairinherited
placeholder String?
The placeholder text for the Question Steps using an answer format which requires text entry
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
steps List<RPQuestionStep>
The list of questions to be shown as part of the step.
getter/setter pair
stepWidget Widget
The widget (UI representation) of Form Step.
no setteroverride
text String?
The text of the Step. Different types of Steps are using the text text differently.
getter/setter pairinherited
title String
The title text. Different types of Steps are using the title text differently.
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Return a JSON encoding of this object.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited