getRankingSummary static method

Future<Ranking> getRankingSummary(
  1. String rankingId,
  2. bool isRealTime
)

Obtains the data of a leaderboard. The data can be obtained from the local cache.

Implementation

static Future<Ranking> getRankingSummary(
  String rankingId,
  bool isRealTime,
) async {
  final dynamic response = await _channel.invokeMethod(
    'RankingsClient.getRankingSummary',
    <String, dynamic>{
      'rankingId': rankingId,
      'isRealtime': isRealTime,
    },
  );
  return Ranking.fromMap(Map<dynamic, dynamic>.from(response));
}