RPInstructionStep class

A step which can be used to show instructions and other information to the participant. Usually it is used as the first step in a Task explaining the task.

Inheritance
Annotations
  • @JsonSerializable.new(includeIfNull: false, explicitToJson: true)

Constructors

RPInstructionStep({required String identifier, required String title, String? text, bool optional = false, String? detailText, String? imagePath, String? audioPath, String? videoPath, String? footnote, String? nextButtonText})
RPInstructionStep.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
audioPath ↔ String?
The path of the audio to play after the Instruction Step is finished.
getter/setter pair
detailText ↔ String?
The text which is shown in a new window by pressing the "Learn more" button. If null, no "Learn more" button is shown.
getter/setter pair
footnote ↔ String?
Optional footer text to be displayed below the question. This can be used to provide additional information, such as copyright, or instructions. This text will be displayed in a smaller font size.
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
imagePath ↔ String?
The path of the image to show during the Instruction Step (e.g.: "assets/picture.png").
getter/setter pair
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
nextButtonText ↔ String?
Text for the button that advances past this step.
getter/setter pairinherited
optional ↔ bool
Can this step be skipped? If so, the result for the step will be null.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stepWidget → Widget
The widget (UI representation) of the step.
no setteroverride
text ↔ String?
The text of the Step. Different types of Steps are using the text text differently.
getter/setter pairinherited
timer ↔ Timer?
getter/setter pairinherited
title ↔ String
The title text. Different types of Steps are using the title text differently.
getter/setter pairinherited
videoPath ↔ String?
getter/setter pair

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

Operators

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