getAlias method

Future<AliasDoc?> getAlias(
  1. String handle
)

Implementation

Future<AliasDoc?> getAlias(String handle) async {
  final aliases = await searchAliases(handle, 1);
  try {
    return aliases.firstWhere((alias) => alias.handle == handle);
  } catch (e) {
    return null;
  }
}