GameHighScore class abstract

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

Annotations
  • @freezed

Constructors

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

Properties

copyWith → $GameHighScoreCopyWith<GameHighScore>
Create a copy of GameHighScore with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
position int
Position in high score table for the game
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score int
Score
no setterinherited
user User
User
no setterinherited

Methods

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

Operators

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