Code.fromBytes constructor
const
Code.fromBytes({
- Key? key,
- required Uint8List data,
- required CodeType codeType,
- Color color = Colors.black,
- Color? backgroundColor,
- Decoration? decoration,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- double? width,
- double? height,
- bool drawText = true,
- TextStyle? style,
- double textPadding = 5,
- BarcodeErrorBuilder? errorBuilder,
Draw a barcode on screen using Uint8List data
Implementation
const Code.fromBytes({
super.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;