disconnect method

Future<void> disconnect(
  1. dynamic onDisconnect(
    1. W3GResponse
    )
)

prompts the server to disconnect the wallet

onDisconnect is called once there's a disconnect response from the server

Implementation

Future<void> disconnect(Function(W3GResponse) onDisconnect) async {
  on("disconnect", onDisconnect);
  send({"path": "disconnect"});
}