getGroupAttributes method

  1. @override
Future<V2TimValueCallback<Map<String, String>>> getGroupAttributes({
  1. required String groupID,
  2. List<String>? keys,
})
override

获取指定群属性,keys 传 null 则获取所有群属性。

Implementation

@override
Future<V2TimValueCallback<Map<String, String>>> getGroupAttributes({
  required String groupID,
  List<String>? keys,
}) async {
  return V2TimValueCallback<Map<String, String>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "getGroupAttributes",
        buildGroupManagerParam(
          {
            "groupID": groupID,
            "keys": keys ?? [],
          },
        ),
      ),
    ),
  );
}