PlayerInfo class Null safety
A class that models the useful info of a user.
Constructors
- PlayerInfo({DurationInformation? durationInformation, DifficultyInformation? difficultyInformation, int? minutesPlayed, int? questionsAnswered, int? elo, int? questionsRightAnswered, CategoryInformation? categoryInformation, String? username})
-
PlayerInfo.fromJson(Map<
String, dynamic> json)
Properties
- categoryInformation ↔ CategoryInformation?
-
read / write
- difficultyInformation ↔ DifficultyInformation?
-
read / write
- durationInformation ↔ DurationInformation?
-
read / write
- elo ↔ int?
-
read / write
- hashCode → int
-
The hash code for this object.
read-only, inherited
- minutesPlayed ↔ int?
-
read / write
- questionsAnswered ↔ int?
-
read / write
- questionsRightAnswered ↔ int?
-
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- username ↔ String?
-
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited