CreditCardWidget constructor
const
CreditCardWidget({
- Key? key,
- required String cardNumber,
- required String expiryDate,
- required String cardHolderName,
- required String cvvCode,
- required bool showBackView,
- Duration animationDuration = const Duration(milliseconds: 500),
- double? height,
- double? width,
- TextStyle? textStyle,
- TextStyle? cardNumberTextStyle,
- TextStyle? cvvTextStyle,
- Color cardBgColor = const Color(0xff1b447b),
- bool obscureCardNumber = true,
- bool obscureCardCvv = true,
- String labelCardHolder = '',
- String labelExpiredDate = '',
- CardType? cardType,
- bool isHolderNameVisible = false,
- String? backgroundImage,
- Glassmorphism? glassmorphismConfig,
- bool isChipVisible = true,
- bool isSwipeGestureEnabled = true,
- List<
CustomCardTypeIcon> customCardTypeIcons = const <CustomCardTypeIcon>[], - required void onCreditCardWidgetChange(),
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);