RPQuestionStep class Null safety

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

Inheritance
Implementers
Annotations

Constructors

RPQuestionStep({required String identifier, required String title, bool optional = false, required RPAnswerFormat answerFormat})
Creates a RPQuestionStep.
RPQuestionStep.fromJson(Map<String, dynamic> json)
factory

Properties

$type String?
The runtime class name (type) of this object. Used for deserialization from JSON objects.
read / writeinherited
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-onlyoverride
hashCode int
The hash code for this object.
read-onlyinherited
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.
read-onlyinherited
optional bool
Can this step be skipped? If so, the result for the step will be null.
read / writeinherited
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-onlyinherited
stepWidget Widget
The widget (UI representation) of the step.
read-onlyoverride
text String?
The text of the Step. Different types of Steps are using the text text differently.
read / writeinherited
title String
The title text. Different types of Steps are using the title text differently.
read / writeinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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