Code.fromBytes constructor

const Code.fromBytes({
  1. Key? key,
  2. required Uint8List data,
  3. required CodeType codeType,
  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 Code.fromBytes({
  Key? key,
  required Uint8List data,
  required this.codeType,
  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);