printImage method
Future<void>
printImage({
- String? deviceId,
- PrinterConnectionType? connectionType,
- required ImageModel imageModel,
override
Implementation
@override
Future<void> printImage({
String? deviceId,
PrinterConnectionType? connectionType,
required ImageModel imageModel,
}) async {
final data = imageModel.toJson();
if (deviceId != null) data["device_id"] = deviceId;
if (connectionType != null) data["connection_type"] = connectionType.value;
await _channel.invokeMethod(PrinterMethod.printImage.value, data);
}