printBarCode method

Future<GertecResponse> printBarCode({
  1. int width = 200,
  2. int height = 60,
  3. required String text,
  4. PrintAlign align = PrintAlign.LEFT,
})

Implementation

Future<GertecResponse> printBarCode(
    {int width = 200,
    int height = 60,
    required String text,
    PrintAlign align = PrintAlign.LEFT}) async {
  return GertecResponse.fromJson(await GertecPrinterPlatform.instance
          .printBarCode(
              width: width, height: height, text: text, align: align.value) ??
      '{}');
}