sendCommand static method

Future<bool> sendCommand(
  1. String command
)

Implementation

static Future<bool> sendCommand(String command) async {
  final res = await channel.invokeMethod('sendCommand', {'command': command});
  return (res as Map)['success'] == true;
}