BarcodeWidget constructor

BarcodeWidget(
  1. {required String data,
  2. required Barcode barcode,
  3. PdfColor color = PdfColors.black,
  4. PdfColor? backgroundColor,
  5. BoxDecoration? decoration,
  6. EdgeInsets? margin,
  7. EdgeInsets? padding,
  8. double? width,
  9. double? height,
  10. bool drawText = true,
  11. TextStyle? textStyle,
  12. double textPadding = 0}
)

Create a BarcodeWidget

Implementation

BarcodeWidget({
  required String data,
  required this.barcode,
  this.color = PdfColors.black,
  this.backgroundColor,
  this.decoration,
  this.margin,
  this.padding,
  this.width,
  this.height,
  this.drawText = true,
  this.textStyle,
  this.textPadding = 0,
})  : dataBytes = null,
      dataString = data;