|
|
@ -28,8 +28,9 @@ class LeaderboardEntry {
|
|
|
|
final AssetGenImage character;
|
|
|
|
final AssetGenImage character;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// Converts [LeaderboardEntryData] to [LeaderboardEntry].
|
|
|
|
/// Converts [LeaderboardEntryData] from repository to [LeaderboardEntry].
|
|
|
|
extension LeaderboardEntryDataX on LeaderboardEntryData {
|
|
|
|
extension LeaderboardEntryDataX on LeaderboardEntryData {
|
|
|
|
|
|
|
|
/// Conversion method to [LeaderboardEntry]
|
|
|
|
LeaderboardEntry toEntry(int position) {
|
|
|
|
LeaderboardEntry toEntry(int position) {
|
|
|
|
return LeaderboardEntry(
|
|
|
|
return LeaderboardEntry(
|
|
|
|
rank: position.toString(),
|
|
|
|
rank: position.toString(),
|
|
|
|