increment method
Increment an achievement
.
Achievement takes two parameters:
androidID
the achievement id for android.
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
@override
Future<String?> increment({required Achievement achievement}) async {
return await _channel.invokeMethod("increment", {
"achievementID": achievement.id,
"steps": achievement.steps,
});
}