writeLeaderboardRecord abstract method
Submitting scores
When players submit scores, Nakama will increment the player’s existing score by the submitted score value.
Along with the score value, Nakama also has a subscore, which can be used for ordering when the scores are the same.
Implementation
Future<model.LeaderboardRecord> writeLeaderboardRecord({
required model.Session session,
required String leaderboardName,
int? score,
int? subscore,
String? metadata,
});