PassMetadata constructor

const PassMetadata({
  1. required String description,
  2. required int formatVersion,
  3. required String organizationName,
  4. required String passTypeIdentifier,
  5. required String serialNumber,
  6. required String teamIdentifier,
  7. String? appLaunchURL,
  8. DateTime? expirationDate,
  9. bool voided = false,
  10. List<Beacon> beacons = const [],
  11. List<Location> locations = const [],
  12. int? maxDistance,
  13. DateTime? relevantDate,
  14. PassStructureDictionary? boardingPass,
  15. PassStructureDictionary? coupon,
  16. PassStructureDictionary? eventTicket,
  17. PassStructureDictionary? generic,
  18. PassStructureDictionary? storeCard,
  19. List<PassBarcode> barcodes = const [],
  20. int? backgroundColor,
  21. int? foregroundColor,
  22. String? groupingIdentifier,
  23. int? labelColor,
  24. String? logoText,
  25. PassWebService? webService,
})

Implementation

const PassMetadata({
  required this.description,
  required this.formatVersion,
  required this.organizationName,
  required this.passTypeIdentifier,
  required this.serialNumber,
  required this.teamIdentifier,
  this.appLaunchURL,
  this.expirationDate,
  this.voided = false,
  this.beacons = const [],
  this.locations = const [],
  this.maxDistance,
  this.relevantDate,
  this.boardingPass,
  this.coupon,
  this.eventTicket,
  this.generic,
  this.storeCard,
  this.barcodes = const [],
  this.backgroundColor,
  this.foregroundColor,
  this.groupingIdentifier,
  this.labelColor,
  this.logoText,
  this.webService,
});