submitScoreWithResult static method
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));
}