searchFriends method

Future<List<SearchFriendsInfo>> searchFriends({
  1. List<String> keywordList = const [],
  2. bool isSearchUserID = false,
  3. bool isSearchNickname = false,
  4. bool isSearchRemark = false,
  5. String? operationID,
})

Search for Friends keywordList Search keywords, currently supports only one keyword search, cannot be empty isSearchUserID Whether to search for friend IDs with keywords (note: cannot be false at the same time), defaults to false if empty isSearchNickname Whether to search by nickname with keywords, defaults to false if empty isSearchRemark Whether to search by remark name with keywords, defaults to false if empty

Implementation

Future<List<SearchFriendsInfo>> searchFriends({
  List<String> keywordList = const [],
  bool isSearchUserID = false,
  bool isSearchNickname = false,
  bool isSearchRemark = false,
  String? operationID,
}) =>
    _channel
        .invokeMethod(
            'searchFriends',
            _buildParam({
              'searchParam': {
                'keywordList': keywordList,
                'isSearchUserID': isSearchUserID,
                'isSearchNickname': isSearchNickname,
                'isSearchRemark': isSearchRemark,
              },
              'operationID': Utils.checkOperationID(operationID),
            }))
        .then((value) => Utils.toList(value, (map) => SearchFriendsInfo.fromJson(map)));