checkAlias method
Checks if an alias with the given handle exists.
This method checks the existence of an alias based on its handle.
Parameters:
handle
: The handle of the alias to check.
Returns:
- A Future that completes with
true
if the alias exists,false
otherwise.
Implementation
Future<bool> checkAlias(String handle) async {
try {
await _client.checkAlias(CheckAliasRequest(handle: handle));
return true;
} on GrpcError {
return false;
}
}