BarcodeWidget constructor
      
      BarcodeWidget({ 
    
- required String data,
- required Barcode barcode,
- PdfColor color = PdfColors.black,
- PdfColor? backgroundColor,
- BoxDecoration? decoration,
- EdgeInsets? margin,
- EdgeInsets? padding,
- double? width,
- double? height,
- bool drawText = true,
- TextStyle? textStyle,
- 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;