submitRankingScores static method

Future<void> submitRankingScores(
  1. String rankingId,
  2. int score, {
  3. String? scoreTips,
})

Asynchronously submits the score of the current player with a custom unit.

Implementation

static Future<void> submitRankingScores(
  String rankingId,
  int score, {
  String? scoreTips,
}) async {
  await _channel.invokeMethod(
    'RankingsClient.submitRankingScores',
    removeNulls(
      <String, dynamic>{
        'rankingId': rankingId,
        'score': score,
        'scoreTips': scoreTips,
      },
    ),
  );
}