Skip to content

RPPictureSequenceMemoryActivity

Picture Sequence Memory Test

Inheritance
Annotations

Constructors

RPPictureSequenceMemoryActivity.fromJson

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

RPPictureSequenceMemoryActivity

RPPictureSequenceMemoryActivity({
  1. required String identifier,
  2. bool includeInstructions = true,
  3. bool includeResults = true,
  4. int lengthOfTest = 90,
  5. int numberOfTests = 3,
  6. int numberOfPics = 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.

numberOfPics

int numberOfPics
getter/setter pair

Number of pictures to be displayed. Default is 3.

numberOfTests

int numberOfTests
getter/setter pair

Number of tests to be performed. Default is 3.

Methods

calculateScore

int calculateScore(
  1. dynamic result
)
override

The results is the list of pairs correcly placed in the test. The score is the sum of correctly placed pairs.

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.