CreditCard constructor
CreditCard({
- Key? key,
- String? cardNumber,
- String? cardExpiry,
- String? cardHolderName,
- String bankName = '',
- String? cvv,
- bool showBackSide = false,
- required Widget frontBackground,
- required Widget backBackground,
- CardType? cardType,
- Widget? frontLayout,
- Widget? backLayout,
- Color frontTextColor = Colors.white,
- Color backTextColor = Colors.black,
- bool showShadow = false,
- double? width,
- double? height,
- String? textExpDate = 'Exp. Date',
- String? textExpiry = 'MM/YY',
- String? textName = 'Card Holder',
- String? mask,
- double horizontalMargin = 20,
Implementation
CreditCard({
Key? key,
this.cardNumber,
this.cardExpiry,
this.cardHolderName,
this.bankName = '',
this.cvv,
this.showBackSide = false,
required this.frontBackground,
required this.backBackground,
this.cardType,
this.frontLayout,
this.backLayout,
this.frontTextColor = Colors.white,
this.backTextColor = Colors.black,
this.showShadow = false,
this.width,
this.height,
this.textExpDate = 'Exp. Date',
this.textExpiry = 'MM/YY',
this.textName = 'Card Holder',
this.mask,
this.horizontalMargin = 20,
}) : super(key: key);