Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
getPlayerScoreObject ({String ? iOSLeaderboardID = "" , String ? androidLeaderboardID = "" , required PlayerScope scope , required TimeScope timeScope })
→ Future <LeaderboardScoreData ? >
Get leaderboard score data for the current player
loadLeaderboardScores ({String ? iOSLeaderboardID = "" , String ? androidLeaderboardID = "" , bool playerCentered = false , required PlayerScope scope , required TimeScope timeScope , bool forceRefresh = false , required int maxResults })
→ Future <List <LeaderboardScoreData > ? >
Get leaderboard scores as a list. Use this to build a custom UI.
To show the device's default leaderboards screen use showLeaderboards .
showLeaderboards ({String ? iOSLeaderboardID = "" , String ? androidLeaderboardID = "" })
→ Future <String ? >
Open the device's default leaderboards screen. If a leaderboard ID is provided,
it will display the specific leaderboard, otherwise it will show the list of all leaderboards.
submitScore ({required Score score })
→ Future <String ? >
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.