Rank class

This class represents an rank in the leaderboard.

Constructors

Rank.from({required String userId, required String name, required String avatarUrl, required int xp, required String reaction, required bool isStreakExtendedToday})
Returns the new instance of Rank based on arguments.

Properties

avatarUrl String
The avatar url
final
hashCode int
The hash code for this object.
no setteroverride
isStreakExtendedToday bool
The flag that represents the streak is extended today or not.
final
name String
The name
final
reaction String
The reaction
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
The user id
final
xp int
The xp
final

Methods

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

Operators

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