CreditCardWidget constructor

const CreditCardWidget({
  1. Key? key,
  2. required String cardNumber,
  3. required String expiryDate,
  4. required String cardHolderName,
  5. required String cvvCode,
  6. required bool showBackView,
  7. Duration animationDuration = const Duration(milliseconds: 500),
  8. double? height,
  9. double? width,
  10. TextStyle? textStyle,
  11. Color cardBgColor = const Color(0xff1b447b),
  12. bool obscureCardNumber = true,
  13. bool obscureCardCvv = true,
  14. String labelCardHolder = 'CARD HOLDER',
  15. String labelExpiredDate = 'MM/YY',
  16. CardType? cardType,
})

Implementation

const CreditCardWidget({
  Key? key,
  required this.cardNumber,
  required this.expiryDate,
  required this.cardHolderName,
  required this.cvvCode,
  required this.showBackView,
  this.animationDuration = const Duration(milliseconds: 500),
  this.height,
  this.width,
  this.textStyle,
  this.cardBgColor = const Color(0xff1b447b),
  this.obscureCardNumber = true,
  this.obscureCardCvv = true,
  this.labelCardHolder = 'CARD HOLDER',
  this.labelExpiredDate = 'MM/YY',
  this.cardType,
}) : super(key: key);