showLeaderboard static method

Future<bool> showLeaderboard(
  1. String id
)

LEADERBOARD show leaderboard must specify a particular leaderboard by id (String)

Implementation

static Future<bool> showLeaderboard(String id) async {
  try {
    final String response =
        await _channel.invokeMethod(Methods.showLeaderboard, {_ID: id});
    if (response == _SUCCESS) return true;
  } catch (e) {
    debugPrint('showLeaderboard error ::::  ${e.toString()}');
    return false;
  }
  return false;
}