RPContinuousVisualTrackingActivity class
A Multiple Object Tracking Test
- Inheritance
-
- Object
- Serializable
- RPStep
- RPActivityStep
- RPContinuousVisualTrackingActivity
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
- RPContinuousVisualTrackingActivity({required String identifier, bool includeInstructions = true, bool includeResults = true, int lengthOfTest = 90, int numberOfTests = 3, int amountOfDots = 5, int amountOfTargets = 2, int dotSize = 100, Duration trackingSpeed = const Duration(seconds: 5)})
-
RPContinuousVisualTrackingActivity.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
- amountOfDots ↔ int
-
Amount of dots to be displayed. Default is 5.
getter/setter pair
- amountOfTargets ↔ int
-
Amount of targets to be displayed. Default is 2.
getter/setter pair
- dotSize ↔ int
-
Size of the dots in pixels. Default is 100.
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 - includeInstructions ↔ bool
-
Show the instruction before the test?
getter/setter pairinherited
- includeResults ↔ bool
-
Show the results after the test?
getter/setter pairinherited
- 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 - lengthOfTest ↔ int
-
Test duration in seconds. Default is 90 seconds.
getter/setter pair
- numberOfTests ↔ int
-
Amount of test repetitions. Default is 3.
getter/setter pair
- 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 setterinherited
- 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 - trackingSpeed ↔ Duration
-
The speed of the dots in seconds. Default is 5 seconds per move.
getter/setter pair
Methods
-
calculateScore(
dynamic result) → int -
The result of this activity is a list of mistakes for each test repetition.
The list is empty if no mistakes were made.
For every repetition with 0 mistakes a score of 1 is added.
The final score is the sum of repetitions with 0 mistakes.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stepBody(
dynamic onResultChange(dynamic), RPActivityEventLogger eventLogger) → Widget -
Initiates the UI component for an ActivityStep.
override
-
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