sendCommand method

  1. @override
Future<bool> sendCommand(
  1. String command
)
override

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;
  }
}