sendCommand method

Future<String?> sendCommand(
  1. String command
)

Sends the command to the Liquid Galaxy.

Implementation

Future<String?> sendCommand(String command) async {
  try {
    return utf8.decode(await client!.run(command));
  } on SSHChannelOpenError {
    await handleSSHChannelOpenError();
    return utf8.decode(await client!.run(command));
  } catch (e) {
    return null;
  }
}