TicketCard constructor
const
TicketCard({
- Key? key,
- String fromCode = 'JFK',
- String toCode = 'DXB',
- String fromTime = '11:20',
- String toTime = '07:55',
- String dateLabel = 'Tue, 28 Oct',
- String passengerName = 'Fazal Hussain',
- String seat = 'A2',
- String travelClass = 'Business',
- String gate = '21',
- double cardBorderRadius = 20,
- double cardNotchRadius = 16,
- double cardNotchOffsetFactor = 0.2,
- double cardBorderWidth = 1.6,
- 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'
});