unlock static method

Future<String?> unlock({
  1. required Achievement achievement,
})

Unlock an achievement. Achievement takes three parameters: androidID the achievement ID for Google Play Games. iOSID the achievement ID for Game Center. percentComplete the completion percentage of the achievement, this parameter is optional on iOS/macOS.

Implementation

static Future<String?> unlock({required Achievement achievement}) async {
  return await GamesServicesPlatform.instance
      .unlock(achievement: achievement);
}