Skip to content

RPVisualArrayChangeResult

Visual Array Change Test Result

Inheritance
Annotations

Constructors

RPVisualArrayChangeResult.fromJson

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

RPVisualArrayChangeResult.fromResults

RPVisualArrayChangeResult.fromResults(
  1. int wrong,
  2. int right,
  3. List times,
  4. List memoryTimes,
  5. int score,
)

Create a RPVisualArrayChangeResult from a set of results:

  • right: the number of correct answers
  • wrong: the number of wrong answers
  • times: time taken to find the change
  • memoryTimes: time taken to memorize the shapes
  • score: score of the test calculated in model class

RPVisualArrayChangeResult

RPVisualArrayChangeResult({
  1. required String identifier,
})

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.