submitScoreWithResult static method

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

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

Implementation

static Future<ScoreSubmissionInfo> submitScoreWithResult(
  String rankingId,
  int score, {
  String? scoreTips,
}) async {
  final dynamic response = await _channel.invokeMethod(
    'RankingsClient.submitScoreWithResult',
    removeNulls(
      <String, dynamic>{
        'rankingId': rankingId,
        'score': score,
        'scoreTips': scoreTips,
      },
    ),
  );
  return ScoreSubmissionInfo.fromMap(Map<dynamic, dynamic>.from(response));
}