showLeaderboards method

  1. @override
Future<String?> showLeaderboards({
  1. dynamic iOSLeaderboardID = "",
  2. dynamic androidLeaderboardID = "",
})
override

It will open the leaderboards screen.

Implementation

@override
Future<String?> showLeaderboards(
    {iOSLeaderboardID = "", androidLeaderboardID = ""}) async {
  return await _channel.invokeMethod("showLeaderboards", {
    "leaderboardID":
        Helpers.isPlatformAndroid ? androidLeaderboardID : iOSLeaderboardID
  });
}