CreditCard constructor

CreditCard({
  1. Key? key,
  2. String? cardNumber,
  3. String? cardExpiry,
  4. String? cardHolderName,
  5. String bankName = '',
  6. String? cvv,
  7. bool showBackSide = false,
  8. required Widget frontBackground,
  9. required Widget backBackground,
  10. CardType? cardType,
  11. Widget? frontLayout,
  12. Widget? backLayout,
  13. Color frontTextColor = Colors.white,
  14. Color backTextColor = Colors.black,
  15. bool showShadow = false,
  16. double? width,
  17. double? height,
  18. String? textExpDate = 'Exp. Date',
  19. String? textExpiry = 'MM/YY',
  20. String? textName = 'Card Holder',
  21. String? mask,
  22. 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);