getAllRankingSummaries static method
Obtains all leaderboard data. The data can be obtained from the local cache.
Implementation
static Future<List<Ranking>> getAllRankingSummaries(bool isRealTime) async {
final dynamic response = await _channel.invokeMethod(
'RankingsClient.getAllRankingSummaries',
removeNulls(
<String, dynamic>{
'isRealTime': isRealTime,
},
),
);
return List<Ranking>.from(
response.map(
(dynamic x) => Ranking.fromMap(
Map<dynamic, dynamic>.from(x),
),
),
).toList();
}