Skip to content

RPFlankerResult

Flanker Test Result

Inheritance
Annotations

Constructors

RPFlankerResult.fromJson

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

RPFlankerResult.fromResults

RPFlankerResult.fromResults(
  1. int wrong,
  2. int right,
  3. int time,
  4. int score,
  5. double meanCongruent,
  6. double meanIncongruent,
  7. int numberCardsCongruent,
  8. int numberCardsIncongruent,
)

Create a Flanker Test result based on obtained results.

  • wrong: number of wrong answers
  • right: number of right answers
  • time: time taken to finish the test
  • score: score of the test calculated in model class

RPFlankerResult

RPFlankerResult({
  1. required String identifier,
})

Create an empty Flanker Test result.

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.