increaseGroupCounter method

  1. @override
Future<V2TimValueCallback<Map<String, int>>> increaseGroupCounter({
  1. required String groupID,
  2. required String key,
  3. required int value,
})
override

Implementation

@override
Future<V2TimValueCallback<Map<String, int>>> increaseGroupCounter({
  required String groupID,
  required String key,
  required int value,
}) async {
  Map<String, dynamic> param = {
    "groupID": groupID,
    "key": key,
    "value": value,
  };
  var resp = V2TimValueCallback<Map<String, int>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "increaseGroupCounter",
        buildGroupManagerParam(
          param,
        ),
      ),
    ),
  );
  log("increaseGroupCounter", param, resp.toLogString());
  return resp;
}