searchGroups method

Future<List<GroupInfo>> searchGroups({
  1. List<String> keywordList = const [],
  2. bool isSearchGroupID = false,
  3. bool isSearchGroupName = false,
  4. String? operationID,
})

Query a group keywordList Search keywords; currently, only one keyword is supported, and it cannot be empty. isSearchGroupID Whether to search by group ID (Note: cannot set both to false at the same time); defaults to false if not set. isSearchGroupName Whether to search by group name; defaults to false if not set.

Implementation

Future<List<GroupInfo>> searchGroups({
  List<String> keywordList = const [],
  bool isSearchGroupID = false,
  bool isSearchGroupName = false,
  String? operationID,
}) =>
    _channel
        .invokeMethod(
            'searchGroups',
            _buildParam({
              'searchParam': {
                'keywordList': keywordList,
                'isSearchGroupID': isSearchGroupID,
                'isSearchGroupName': isSearchGroupName,
              },
              'operationID': Utils.checkOperationID(operationID),
            }))
        .then((value) => Utils.toList(value, (map) => GroupInfo.fromJson(map)));