disconnect method

Future<void> disconnect()

Disconnect from wallet and drop current session.

Implementation

Future<void> disconnect() async {
  if (!connected) {
    throw WalletNotConnectedError(null);
  }

  await provider!.disconnect();
  _onWalletDisconnected();
}