printImage static method

Future<void> printImage(
  1. Uint8List img
)

printImage

With this method you can print an image in your printer. Just follow the examples that you can print even an image from web or an asset inside your project

Implementation

static Future<void> printImage(Uint8List img) async {
  Map<String, dynamic> arguments = <String, dynamic>{};
  arguments.putIfAbsent("bitmap", () => img);
  await _channel.invokeMethod("PRINT_IMAGE", arguments);
}