PassBarcode constructor

PassBarcode({
  1. required BarcodeType format,
  2. @Deprecated('Use [barcodeData] instead') String? message,
  3. Encoding messageEncoding = utf8,
  4. Uint8List? barcodeData,
  5. 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!));