CreditCardWidget constructor

const CreditCardWidget({
  1. required String cardNumber,
  2. required String expiryDate,
  3. required String cardHolderName,
  4. required String cvvCode,
  5. required bool showBackView,
  6. Key? key,
  7. double? height,
  8. double? width,
  9. Gradient? gradient,
  10. Duration animationDuration = const Duration(milliseconds: 500),
  11. bool obscureCardNumber = true,
  12. ValueChanged<CardBrand>? onBrandChanged,
})

Implementation

const CreditCardWidget({
  required this.cardNumber,
  required this.expiryDate,
  required this.cardHolderName,
  required this.cvvCode,
  required this.showBackView,
  super.key,
  this.height,
  this.width,
  this.gradient,
  this.animationDuration = const Duration(milliseconds: 500),
  this.obscureCardNumber = true,
  this.onBrandChanged,
});