execute method

Future<SSHSession> execute(
  1. String command
)

Connects to the current client, executes a command into it and then disconnects.

Implementation

Future<SSHSession> execute(String command) async {
  SSHSession execResult;

  execResult = await _client!.execute(command);

  notifyListeners();
  return execResult;
}