Ranking class
A class that includes the leaderboard data when the
getRankingSummary
method of RankingsClient
is called.
Constructors
-
Ranking({String? rankingDisplayName, String? rankingImageUri, String? rankingId, int? rankingScoreOrder, List<
RankingVariant> ? rankingVariants}) - Ranking.fromMap(Map map)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- rankingDisplayName ↔ String?
-
Display name of a leaderboard.
getter/setter pair
- rankingId ↔ String?
-
Leaderboard ID allocated by AppGallery Connect when creating a leaderboard.
getter/setter pair
- rankingImageUri ↔ String?
-
URI of a leaderboard icon.
getter/setter pair
- rankingScoreOrder ↔ int?
-
Ordering mode of scores.
getter/setter pair
-
rankingVariants
↔ List<
RankingVariant> ? -
A
RankingVariant
object by time frame (daily, weekly, and all-time), including the scores of the current player in the three time frames.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
- SCORE_VALUE_HIGH_BETTER → const int
- Ordering mode of scores. A larger score is better.
- SCORE_VALUE_SMALL_BETTER → const int
- Ordering mode of scores. A smaller score is better.