submitScore static method

Future<String?> submitScore({
  1. required Score score,
})

Submit a score to specific leaderboard. Score takes three parameters: androidLeaderboardID the leaderboard ID for Google Play Games. iOSLeaderboardID the leaderboard ID for Game Center. value the score.

Implementation

static Future<String?> submitScore({required Score score}) async {
  return await Leaderboards.submitScore(score: score);
}