RPQuestionStep class Null safety

The concrete subclass of RPStep that represents a step in which a single question is presented to the user.

When a Task Widget presents an Question Step object, it instantiates an RPUIQuestionStep object to present the step. The actual visual presentation depends on the answer format (RPAnswerFormat). When you need to present more than one question at the same time, it can be appropriate to use RPFormStep instead of RPQuestionStep.



RPQuestionStep({required String identifier, required RPAnswerFormat answerFormat, required String title, bool optional = false})
Creates a Question Step populated with title (text of the question) and answer format on which the actual layout depends
RPQuestionStep.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
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
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stepWidget Widget
The widget (UI representation) of the 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. [...]