Achievement class

A class that includes the details about an achievement.

Constructors

Achievement({String? id, int? reachedSteps, String? descInfo, String? localeReachedSteps, String? localeAllSteps, int? recentUpdateTime, String? displayName, Player? gamePlayer, String? visualizedThumbnailUri, int? state, int? allSteps, int? type, String? reachedThumbnailUri})
Achievement.fromMap(Map map)
factory

Properties

allSteps int?
Total number of steps required for unlocking the achievement.
getter/setter pair
descInfo String?
Description of the achievement.
getter/setter pair
displayName String?
Achievement name.
getter/setter pair
gamePlayer Player?
A Player object that contains player information.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
Achievement ID string.
getter/setter pair
localeAllSteps String?
Localized total number of steps required for unlocking the achievement.
getter/setter pair
localeReachedSteps String?
Localized number of steps that the player has gone toward unlocking the achievement.
getter/setter pair
reachedSteps int?
Number of steps that the player has gone toward unlocking the achievement.
getter/setter pair
reachedThumbnailUri String?
URI that can be used to load the achievement icon after the achievement is unlocked.
getter/setter pair
recentUpdateTime int?
Timestamp when the achievement is updated the last time, that is, number of milliseconds between the last achievement update time and 00:00:00 on January 1, 1970.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state int?
Achievement status. 1: The achievement is revealed. 2: The achievement is hidden. 3: The achievement is unlocked.
getter/setter pair
type int?
Achievement type. 1: standard achievement without steps 2: incremental achievement with steps
getter/setter pair
visualizedThumbnailUri String?
URI that can be used to load the achievement icon after the achievement is revealed.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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