Info class Null safety

This class contains useful information that the app uses across several pages.

Constructors

Info()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

categories Iterable<String>
List with all the categories.
read / write
difficulties Iterable<String>
List with all the difficulties that the user can choose.
read / write
difficultiesComplete Iterable<String>
List with all the difficulties that are actually available. The extreme questions are handled by the app and cannot be chosen by the user.
read / write
durations Iterable<String>
List with the durations that the user can choose.
read / write
eloMatrix List<List<double>>
The elo matrix. This matrix is used to calculate the elo gained by a user. It has the following structure: Easy Med Hard Extr 1, 1.5, 2.5, 5, Fast 1.4, 1.9, 2.9, 6, Medium 2, 2.5, 3.5, 8, Large 2.8, 3.3, 4.3, 10, Marathon
read / write

Static Methods

getCategoriesJson() String
Local method to get the categories information.
getEloColumn(String duration) List<double>
It gives the desired column given the duration.