Skip to content

RPVisualArrayChangeActivity

Visual Array Change Test

Inheritance
Annotations

Constructors

RPVisualArrayChangeActivity.fromJson

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

RPVisualArrayChangeActivity

RPVisualArrayChangeActivity({
  1. required String identifier,
  2. bool includeInstructions = true,
  3. bool includeResults = true,
  4. int numberOfShapes = 3,
  5. int lengthOfTest = 90,
  6. int waitTime = 2,
  7. int numberOfTests = 3,
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

lengthOfTest

int lengthOfTest
getter/setter pair

Test duration in seconds. Default is 90 seconds.

numberOfShapes

int numberOfShapes
getter/setter pair

numberOfTests

int numberOfTests
getter/setter pair

number of tests to run. Default is 3.

waitTime

int waitTime
getter/setter pair

wait time between tests in seconds. Default is 2 seconds.

Methods

calculateScore

int calculateScore(
  1. dynamic result
)
override

Score is the number of correct answers in the test.

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.