MyRank class

The current user's standing on a leaderboard (leaderboards.me).

Annotations

Constructors

MyRank({required String leaderboardId, required LeaderboardPeriodInfo period, required String referrerId, int? rank, int score = 0, int? pending, int? gapToNext, int? bestRank, DateTime? periodEndsAt, bool optedOut = false})
const
MyRank.fromJson(Map<String, dynamic> j)
factory

Properties

bestRank → int?
final
gapToNext → int?
Points needed to move up one rank.
final
hashCode → int
The hash code for this object.
no setterinherited
leaderboardId → String
final
optedOut → bool
final
pending → int?
final
period → LeaderboardPeriodInfo
final
periodEndsAt → DateTime?
final
rank → int?
Null when the user has no score yet, opted out, or is below the board's minimum score.
final
referrerId → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
score → int
final

Methods

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

Operators

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