setPlanet method
- String planet
Sets the planet to display on the Liquid Galaxy.
The planet
can be 'earth', 'mars', or 'moon'.
Implementation
Future<void> setPlanet(String planet) async {
if (!await sshConnection.isConnected() ||
planet.isEmpty ||
(planet != 'earth' && planet != 'mars' && planet != 'moon')) {
return;
}
await sshConnection.sendCommand('echo \'planet=$planet\' > /tmp/query.txt');
}