disconnect method
Disconnect from wallet and drop current session.
Implementation
Future<void> disconnect() async {
if (!connected) {
throw WalletNotConnectedError(null);
}
await provider!.disconnect();
_onWalletDisconnected();
}
Disconnect from wallet and drop current session.
Future<void> disconnect() async {
if (!connected) {
throw WalletNotConnectedError(null);
}
await provider!.disconnect();
_onWalletDisconnected();
}