RPQuestionStep class
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.
- Inheritance
- Implementers
Constructors
- RPQuestionStep(String identifier, { bool optional: false })
- The basic constructor which returns a Question Step with only the identifier filled out
- RPQuestionStep.withAnswerFormat(String identifier, String title, RPAnswerFormat _answerFormat, { bool optional: false })
- Returns a Question Step populated with title (text of the question) and answer format on which the actual layout depends
- RPQuestionStep.withTitle(String identifier, { String title, { bool optional: false })
- Returns a Question Step populated with title (text of the question)
Properties
- answerFormat ↔ RPAnswerFormat
-
The answer format which describes the format how a question can be answered.
read / write
- placeholder ↔ String
-
The placeholder text for the Question Steps using an answer format which requires text entry
read / write
- stepWidget → Widget
-
The widget (UI representation) of the step. [...]
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.
read-only, inherited
- optional ↔ bool
-
If set to
true
the step can be skipped. In that case the result for the step will benull
.read / write, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- 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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited