BarcodeWidget.fromBytes constructor

const BarcodeWidget.fromBytes({
  1. Key? key,
  2. required Uint8List data,
  3. required Barcode barcode,
  4. Color color = Colors.black,
  5. Color? backgroundColor,
  6. Decoration? decoration,
  7. EdgeInsetsGeometry? margin,
  8. EdgeInsetsGeometry? padding,
  9. double? width,
  10. double? height,
  11. bool drawText = true,
  12. TextStyle? style,
  13. double textPadding = 5,
  14. BarcodeErrorBuilder? errorBuilder,
})

Draw a barcode on screen using Uint8List data

Implementation

const BarcodeWidget.fromBytes({
  Key? key,
  required Uint8List data,
  required this.barcode,
  this.color = Colors.black,
  this.backgroundColor,
  this.decoration,
  this.margin,
  this.padding,
  this.width,
  this.height,
  this.drawText = true,
  this.style,
  this.textPadding = 5,
  this.errorBuilder,
})  : _dataBytes = data,
      _dataString = null,
      super(key: key);