increment static method
Increment an achievement
.
Achievement takes two parameters:
androidID
the achievement ID for Google Play Games.
steps
If the achievement is of the incremental type
you can use this method to increment the steps.
- only for Android (see https://developers.google.com/games/services/android/achievements#unlocking_achievements).
Implementation
static Future<String?> increment({required Achievement achievement}) async {
return await GamesServicesPlatform.instance
.increment(achievement: achievement);
}