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,
- Color cardBgColor = const Color(0xff1b447b),
- bool obscureCardNumber = true,
- bool obscureCardCvv = true,
- String labelCardHolder = 'CARD HOLDER',
- String labelExpiredDate = 'MM/YY',
- 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);