sshButton method
- Device device
Returns a button to open an SSH connection to device
Implementation
Widget? sshButton(Device device) {
final socket = models.sockets.socketForDevice(device);
if (socket == null || !Platform.isWindows) return null;
return TextButton.icon(
onPressed: () => model.openSsh(device, socket),
label: const Text("Open SSH"),
icon: const Icon(Icons.lan),
);
}