sendCommand method

Future<bool> sendCommand(
  1. String message
)

Sends the given commend to the printer. @param message command to send.

Implementation

Future<bool> sendCommand(String message) async {
  var params = {
    "printerId": _printerId,
    "printInfo": _printerInfo.toMap(),
    "command": message
  };

  final bool success =
      await _channel.invokeMethod("typeB-sendCommand", params);
  return success;
}