increment static method

Future<PluginResult> increment(
  1. String achivementId
)

Implementation

static Future<PluginResult> increment(String achivementId) async {
  try {
    Map<dynamic, dynamic> result =
    await _channel.invokeMethod('increment', {"id": achivementId});
    return PluginResult(result);
  } catch (e) {
    return PluginResult({"success": false, "exception": e.toString()});
  }
}