playCommand static method

Future<ScriptCallback> playCommand(
  1. String command
)

Sends command to a script arguments: command - command name

Implementation

static Future<ScriptCallback> playCommand(String command) async {
  List<dynamic> result = await _channel
      .invokeMethod('playCommand', <String, String>{"command": command});

  return ScriptCallback(
      result[0].toString(), result[1].toString(), result[2].toString());
}