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. dynamic cardName(
    1. String
    )?,
  12. Color cardBgColor = const Color(0xff1b447b),
  13. bool obscureCardNumber = true,
  14. bool obscureCardCvv = true,
  15. String labelCardHolder = 'Nome completo',
  16. String labelExpiredDate = 'MM/YY',
  17. 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.cardName,
  this.cardBgColor = const Color(0xff1b447b),
  this.obscureCardNumber = true,
  this.obscureCardCvv = true,
  this.labelCardHolder = 'Nome completo',
  this.labelExpiredDate = 'MM/YY',
  this.cardType,
}) : super(key: key);