LeaderboardRow class

Constructors

LeaderboardRow({int? accruedCents, String? handle, bool? isYou, int? rank, int? referredCount})
Returns a new LeaderboardRow instance.

Properties

accruedCents ↔ int?
AccruedCents is that affiliate's lifetime commission accrued, in cents, and what the board is ordered by. An aggregate: no per-customer figure is exposed.
getter/setter pair
handle ↔ String?
Handle is the affiliate's self-chosen display name — the only identity the board ever carries. The org behind it is never disclosed.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
isYou ↔ bool?
IsYou marks the caller's own row, so a client can highlight it without matching on a handle. Absent on every other row.
getter/setter pair
rank ↔ int?
Rank is the position in the GLOBAL approved set ordered by lifetime accrued commission, 1-based. Affiliates that set no handle still occupy their rank and are simply not listed, so the visible ranks have gaps and the board is not a complete roster. On the caller's own row the rank is computed over the whole set, so it is exact well outside the top page.
getter/setter pair
referredCount ↔ int?
ReferredCount is how many orgs that affiliate directly referred — a count only, never which orgs.
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
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic value) → LeaderboardRow?
Returns a new LeaderboardRow instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<LeaderboardRow>
mapFromJson(dynamic json) → Map<String, LeaderboardRow>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<LeaderboardRow>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.