getAlias method
Retrieves an alias by its handle.
This method searches for an alias with the given handle and returns its details.
Parameters:
handle
: The handle of the alias to retrieve.
Returns:
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;
}
}