unlock method

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

Unlock an achievement. Achievement takes three parameters: androidID the achievement id for android. iOSID the achievement id for iOS. percentComplete the completion percent of the achievement, this parameter is optional in case of iOS.

Implementation

Future<String?> unlock({achievement = Achievement}) async {
  return await FirebaseGameServices.platform.unlock(achievement: achievement);
}