executeCommand method

  1. @override
Future<Response> executeCommand(
  1. List<Command> commands
)
override

send Command to fiscal printer

Implementation

@override
Future<Response> executeCommand(List<Command> commands) async {
  final xmlDoc = _convertCommandToXmlDoc(commands);
  final isGetInfo =
      commands.isNotEmpty && commands[0].code == CommandCode.GET_INFO;
  return send(xmlDoc, isGetInfo);
}