searchAliases method

Future<Iterable<AliasDoc>> searchAliases(
  1. String handlePrefix, [
  2. int pageSize = 20
])

Implementation

Future<Iterable<AliasDoc>> searchAliases(
  String handlePrefix, [
  int pageSize = 20,
]) async {
  final request =
      SearchAliasesRequest(handlePrefix: handlePrefix, pageSize: pageSize);
  final response =
      await _client.searchAliases(request, options: await _fetchOptions());
  final entries = response.aliases.map(AliasDoc.new);
  return entries;
}