Skip to content

RPRapidVisualInfoProcessingActivity

A Rapid Visual Information Proccesing Test

Inheritance
Annotations

Constructors

RPRapidVisualInfoProcessingActivity.fromJson

RPRapidVisualInfoProcessingActivity.fromJson(
  1. Map<String, dynamic> json
)

RPRapidVisualInfoProcessingActivity

RPRapidVisualInfoProcessingActivity({
  1. required String identifier,
  2. bool includeInstructions = true,
  3. bool includeResults = true,
  4. int interval = 9,
  5. int lengthOfTest = 90,
  6. List<int> sequence = const [3, 6, 9],
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

interval

int interval
getter/setter pair

Interval in which numbers to display are picked (could be 9 (0-9)). Default is 9.

lengthOfTest

int lengthOfTest
getter/setter pair

Test duration in seconds. Default is 90 seconds.

sequence

List<int> sequence
getter/setter pair

Sequence of numbers that is tracked. Default is 3,6,9.

Methods

stepBody

Widget stepBody(
  1. dynamic onResultChange(
    1. dynamic
    ),
  2. RPActivityEventLogger eventLogger
)
override

Initiates the UI component for an ActivityStep.

All classes extending an activity step should override this with their own UI components.

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.