printImage method Null safety

Future<int> printImage(
  1. File image,
  2. bool isBase64
)

*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;
  return await platform?.invokeMethod('printImage', {'imageArgs': mapParam});
}