PassBarcode constructor
PassBarcode({
- required BarcodeType format,
- @Deprecated('Use [barcodeData] instead') String? message,
- Encoding messageEncoding = utf8,
- Uint8List? barcodeData,
- required String? altText,
Implementation
PassBarcode({
required this.format,
@Deprecated('Use [barcodeData] instead') String? message,
this.messageEncoding = utf8,
Uint8List? barcodeData,
required this.altText,
}) : barcodeData =
Uint8List.fromList(barcodeData ?? messageEncoding.encode(message!));