Skip to content

RPTrailMakingActivity

Trail Making Test.

Inheritance
Annotations

Constructors

RPTrailMakingActivity.fromJson

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

RPTrailMakingActivity

RPTrailMakingActivity({
  1. required String identifier,
  2. bool includeInstructions = true,
  3. bool includeResults = true,
  4. TrailType trailType = TrailType.A,
})

Contructor for creating a Trail Making Test.

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

trailType

TrailType trailType
getter/setter pair

The type of trail used in the test.

Methods

calculateScore

int calculateScore(
  1. dynamic result
)
override

Results is number of mistakes made in the trailmaking task. Maximum score is 5 with -1 for each mistake made.

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.