DebitCreditCardWidget constructor

const DebitCreditCardWidget({
  1. Key? key,
  2. double? width,
  3. String cardHolderName = "John Doe",
  4. String cardNumber = "0000000000000000",
  5. String cardExpiry = "0000",
  6. BoxDecoration? cardDecoration,
  7. Color textColor = Colors.white,
  8. String? validFrom,
  9. Color color2 = Colors.black,
  10. Color color1 = Colors.pinkAccent,
  11. bool showNFC = true,
  12. CardBrand cardBrand = CardBrand.visa,
  13. ImageProvider<Object> cardBrandImage = const AssetImage("assets/images/visa_logo.png", package: "debit_credit_card_widget"),
  14. CardType cardType = CardType.debit,
  15. String customCardType = "DEBIT",
  16. ImageProvider<Object>? customCompanyImage,
  17. 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,
});