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. TextStyle? cardNumberTextStyle,
  12. TextStyle? cvvTextStyle,
  13. Color cardBgColor = const Color(0xff1b447b),
  14. bool obscureCardNumber = true,
  15. bool obscureCardCvv = true,
  16. String labelCardHolder = '',
  17. String labelExpiredDate = '',
  18. CardType? cardType,
  19. bool isHolderNameVisible = false,
  20. String? backgroundImage,
  21. Glassmorphism? glassmorphismConfig,
  22. bool isChipVisible = true,
  23. bool isSwipeGestureEnabled = true,
  24. List<CustomCardTypeIcon> customCardTypeIcons = const <CustomCardTypeIcon>[],
  25. required void onCreditCardWidgetChange(
    1. CreditCardBrand
    ),
})

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.cardNumberTextStyle,
  this.cvvTextStyle,
  this.cardBgColor = const Color(0xff1b447b),
  this.obscureCardNumber = true,
  this.obscureCardCvv = true,
  this.labelCardHolder = '',
  this.labelExpiredDate = '',
  this.cardType,
  this.isHolderNameVisible = false,
  this.backgroundImage,
  this.glassmorphismConfig,
  this.isChipVisible = true,
  this.isSwipeGestureEnabled = true,
  this.customCardTypeIcons = const <CustomCardTypeIcon>[],
  required this.onCreditCardWidgetChange})
    : super(key: key);