GameHighScore class

This object represents one row of the high scores table for a game.

Constructors

GameHighScore({required int position, required User user, required int score})
Constructs a GameHighScore object
const
GameHighScore.fromJson(Map<String, dynamic> json)
De-serializes a GameHighScore object from a JSON map
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
position int
Position in high score table for the game
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score int
Score
final
user User
User
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes a GameHighScore object to a JSON map Returns a Map<String, dynamic> containing the serialized object
toString() String
A string representation of this object.
inherited

Operators

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