printImage method
Print an image (logo, signature, etc.)
imageData - Image data (base64 encoded or file path)
Implementation
@override
Future<Map<String, dynamic>> printImage(
String imageData
) async {
try {
final Map<String, dynamic> result = Map<String, dynamic>.from(
await channel.invokeMethod('printImage', {
'imageData': imageData,
})
);
return result;
} on PlatformException catch (e) {
throw SmartPosException('Failed to print image: ${e.message}');
}
}