increment method

  1. @override
Future<String?> increment({
  1. required Achievement achievement,
})
override

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.

Implementation

@override
Future<String?> increment({required Achievement achievement}) async {
  return await _channel.invokeMethod("increment", {
    "achievementID": achievement.id,
    "steps": achievement.steps,
  });
}