DebitCreditCardWidget constructor
const
DebitCreditCardWidget({
- Key? key,
- double? width,
- String cardHolderName = "John Doe",
- String cardNumber = "0000000000000000",
- String cardExpiry = "0000",
- BoxDecoration? cardDecoration,
- Color textColor = Colors.white,
- String? validFrom,
- Color color2 = Colors.black,
- Color color1 = Colors.pinkAccent,
- bool showNFC = true,
- CardBrand cardBrand = CardBrand.visa,
- ImageProvider<
Object> cardBrandImage = const AssetImage("assets/images/visa_logo.png", package: "debit_credit_card_widget"), - CardType cardType = CardType.debit,
- String customCardType = "DEBIT",
- ImageProvider<
Object> ? customCompanyImage, - DecorationImage? backgroundDecorationImage,
Implementation
const DebitCreditCardWidget({
super.key,
this.width,
this.cardHolderName = "John Doe",
this.cardNumber = "0000000000000000",
this.cardExpiry = "0000",
this.cardDecoration,
this.textColor = Colors.white,
this.validFrom,
this.color2 = Colors.black,
this.color1 = Colors.pinkAccent,
this.showNFC = true,
this.cardBrand = CardBrand.visa,
this.cardBrandImage = const AssetImage(
"assets/images/visa_logo.png",
package: "debit_credit_card_widget",
),
this.cardType = CardType.debit,
this.customCardType = "DEBIT",
this.customCompanyImage,
this.backgroundDecorationImage,
});