TicketCard constructor

const TicketCard({
  1. Key? key,
  2. String fromCode = 'JFK',
  3. String toCode = 'DXB',
  4. String fromTime = '11:20',
  5. String toTime = '07:55',
  6. String dateLabel = 'Tue, 28 Oct',
  7. String passengerName = 'Fazal Hussain',
  8. String seat = 'A2',
  9. String travelClass = 'Business',
  10. String gate = '21',
  11. double cardBorderRadius = 20,
  12. double cardNotchRadius = 16,
  13. double cardNotchOffsetFactor = 0.2,
  14. double cardBorderWidth = 1.6,
  15. String barcodeData = '2323456342234456456',
})

Implementation

const TicketCard({
  super.key,
  this.fromCode = 'JFK',
  this.toCode = 'DXB',
  this.fromTime = '11:20',
  this.toTime = '07:55',
  this.dateLabel = 'Tue, 28 Oct',
  this.passengerName = 'Fazal Hussain',
  this.seat = 'A2',
  this.travelClass = 'Business',
  this.gate = '21',
  this.cardBorderRadius = 20,
  this.cardNotchRadius = 16,
  this.cardNotchOffsetFactor = 0.2,
  this.cardBorderWidth = 1.6,
  this.barcodeData = '2323456342234456456'
});