Skip to content

RPStroopEffectActivity

Stroop Effect Test.

Inheritance
Annotations

Constructors

RPStroopEffectActivity.fromJson

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

RPStroopEffectActivity

RPStroopEffectActivity({
  1. required String identifier,
  2. bool includeInstructions = true,
  3. bool includeResults = true,
  4. int lengthOfTest = 40,
  5. int displayTime = 1000,
  6. int delayTime = 750,
})

Contructor for creating a Stroop effect Test.

Properties

delayTime

int delayTime
getter/setter pair

Amount of time between words in ms. Default is 750 ms.

displayTime

int displayTime
getter/setter pair

Amount of time each word is displayed in milliseconds. Default is 1000 ms.

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 40 seconds.

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.