cast<T extends AptosAccountAuthenticator> method
T
cast<T extends AptosAccountAuthenticator>()
Implementation
T cast<T extends AptosAccountAuthenticator>() {
if (this is! T) {
throw DartAptosPluginException("Invalid account authenticated.",
details: {"expected": "$T", "type": type.name});
}
return this as T;
}