sendCommand method
Implementation
@override
Future<bool> sendCommand(String command) async {
try {
final result = await channel.invokeMethod<bool>('sendCommand', {
'command': command,
});
return result ?? false;
} catch (e) {
debugPrint('Error sending command: $e');
return false;
}
}