decreaseGroupCounter method

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

Implementation

@override
Future<V2TimValueCallback<Map<String, int>>> decreaseGroupCounter({
  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(
        "decreaseGroupCounter",
        buildGroupManagerParam(
          param,
        ),
      ),
    ),
  );
  log("decreaseGroupCounter", param, resp.toLogString());
  return resp;
}