printImage method
*printImage
You can print an image from web or from asset very easy with a File
Implementation
Future<int> printImage(File image, bool isBase64) async {
await reset();
Map<String, dynamic> mapParam = new Map();
mapParam['path'] = image.path;
mapParam['isBase64'] = isBase64;
int? _image =
await platform?.invokeMethod('printImage', {'imageArgs': mapParam}) ??
9999;
if (_image < 0) {
throw ElginException(_image);
}
return _image;
}