setGroupCounters method

  1. @override
Future<V2TimValueCallback<Map<String, int>>> setGroupCounters({
  1. required String groupID,
  2. required Map<String, int> counters,
})
override

Implementation

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