RPTimerStep class
The concrete subclass of RPStep that represents a step in which a the user waits for timeout before being allowed to proceed to next question.
Constructors
- RPTimerStep.new({required String identifier, required Duration timeout, required String title, bool playSound = false, bool optional = false})
-
Creates a Timer Step with an identifier, title and duration.
The RPTimerStep is a step in which the user waits for
timeout
before being allowed to proceed to next question. -
RPTimerStep.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
- 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
- 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 - optional ↔ bool
-
If set to
true
the step can be skipped. In that case the result for the step will benull
.getter/setter pairinherited - playSound ↔ bool
-
If
playSound
is true, the RPTimerStep will play a sound when the timer has finished counting down. This isfalse
by default.getter/setter pair - 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
- timeout ↔ Duration
-
The time the user must wait before being able to continue to next step.
getter/setter pair
- title ↔ String
-
The text displayed above the timer, indicating why the user has to wait
a certain amount of time before the next step.
getter/setter pairoverride
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited