disconnect method

Future<void> disconnect()

Disconnects the SSH client if connected.

Implementation

Future<void> disconnect() async {
  if (await isConnected()) {
    client!.close();
  }
}