PrintCommand.barcode constructor

PrintCommand.barcode(
  1. String data, {
  2. double? x,
  3. double? y,
  4. int? rotation,
  5. String? codePage,
})

Implementation

factory PrintCommand.barcode(
  String data, {
  double? x,
  double? y,
  int? rotation,
  String? codePage,
}) {
  return PrintCommand(
    text: '',
    isBarcode: true,
    barcodeData: data,
    x: x,
    y: y,
    rotation: rotation,
    codePage: codePage,
  );
}