disconnect method
Disconnects the session and pairing, if any. If there is no session, this does nothing.
Implementation
@override
Future<void> disconnect() async {
_checkInitialized();
if (_session == null) {
return;
}
await web3App!.disconnectSession(
topic: session!.topic,
// ignore: prefer_const_constructors
reason: WalletConnectError(
code: 0,
message: 'User disconnected',
),
);
}