RPFormStep class Null safety

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.



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


$type String?
The runtime class name (type) of this object. Used for deserialization from JSON objects.
read / write, inherited
answerFormat RPAnswerFormat
The answer format which describes the format how a question can be answered.
read / write, inherited
fromJsonFunction Function
The function which can convert a JSON string to an object of this type.
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
identifier String
A unique identifier of the Step. This identifier connects the Step to its result (RPResult) object.
final, inherited
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.
read-only, inherited
optional bool
If set to true the step can be skipped. In that case the result for the step will be null.
read / write, inherited
placeholder String?
The placeholder text for the Question Steps using an answer format which requires text entry
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
steps List<RPQuestionStep>
The list of questions to be shown as part of the step.
read / write
stepWidget Widget
The widget (UI representation) of Form Step. [...]
read-only, override
text String?
The text of the Step. Different types of Steps are using the text text differently. [...]
read / write, inherited
title String
The title text. Different types of Steps are using the title text differently. [...]
read / write, inherited


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


operator ==(Object other) bool
The equality operator. [...]