Skip to content

RPLetterTappingActivity

Letter Tapping Test

Inheritance
Annotations

Constructors

RPLetterTappingActivity.fromJson

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

RPLetterTappingActivity

RPLetterTappingActivity({
  1. required String identifier,
  2. bool includeInstructions = true,
  3. bool includeResults = true,
})

Create a Letter Tapping Test.

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

Methods

calculateScore

int calculateScore(
  1. dynamic result
)
override

Calculates the score for this activity step.

Classes extending this activity step can override this method with a custom scoring algorithm.

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.