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 {
  return V2TimValueCallback<Map<String, int>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "setGroupCounters",
        buildGroupManagerParam(
          {
            "groupID": groupID,
            "counters": counters,
          },
        ),
      ),
    ),
  );
}