printReceiptImage method

Future<void> printReceiptImage(
  1. List<int> bytes, {
  2. int width = 120,
  3. int feedCount = 0,
  4. bool useCut = false,
  5. bool useRaster = false,
  6. PaperSize paperSize = PaperSize.mm58,
})

This method only for print image with parameter bytes in List

Implementation

Future<void> printReceiptImage(
  List<int> bytes, {
  int width = 120,
  int feedCount = 0,
  bool useCut = false,
  bool useRaster = false,
  PaperSize paperSize = PaperSize.mm58,
}) async {
  final List<int> byteBuffer = await _getBytes(
    bytes,
    customWidth: width,
    feedCount: feedCount,
    useCut: useCut,
    useRaster: useRaster,
    paperSize: paperSize,
  );
  _printProcess(byteBuffer);
}