sendZPLCommand method
Sends a raw ZPL command string to the printer.
Implementation
Future<String?> sendZPLCommand(String zplCommand) async {
try {
final String? result = await _channel.invokeMethod('sendZPLCommand', {
'zplCommand': zplCommand,
});
return result;
} on PlatformException catch (e) {
throw 'Failed to send ZPL command: ${e.message}';
}
}