printImage method

  1. @override
Future<String?> printImage(
  1. Uint8List image,
  2. SunmiPrintAlign align
)
override

Print an image with specified alignment.

Implementation

@override
Future<String?> printImage(Uint8List image, SunmiPrintAlign align) async {
  return await methodChannel.invokeMethod<String>(
      'printImage', {'image': image, "align": align.name});
}