CreditCardUi constructor

const CreditCardUi({
  1. required String cardHolderFullName,
  2. required String cardNumber,
  3. required String validThru,
  4. String? validFrom,
  5. Color topLeftColor = Colors.purple,
  6. Color? bottomRightColor,
  7. bool doesSupportNfc = true,
  8. @Deprecated('[scale] is deprecated, use [width] instead, will be removed soon') double scale = 1.0,
  9. double? width,
  10. bool placeNfcIconAtTheEnd = false,
  11. CardType cardType = CardType.credit,
  12. CreditCardType? creditCardType,
  13. CardProviderLogoPosition cardProviderLogoPosition = CardProviderLogoPosition.right,
  14. DecorationImage? backgroundDecorationImage,
  15. bool showValidFrom = true,
  16. bool showValidThru = true,
  17. Key? key,
  18. String? currencySymbol = r'$',
  19. double? balance = 0.0,
  20. bool? showBalance = false,
  21. bool? autoHideBalance = false,
  22. bool? enableFlipping = false,
  23. String? cvvNumber = '***',
  24. bool? disableHapticFeedBack = false,
})

Creates Credit Card UI.

Implementation

const CreditCardUi({
  required this.cardHolderFullName,
  required this.cardNumber,
  required this.validThru,
  this.validFrom,
  this.topLeftColor = Colors.purple,
  this.bottomRightColor,
  this.doesSupportNfc = true,
  @Deprecated(
    '[scale] is deprecated, use [width] instead, will be removed soon',
  )
  this.scale = 1.0,
  this.width,
  this.placeNfcIconAtTheEnd = false,
  this.cardType = CardType.credit,
  this.creditCardType,
  this.cardProviderLogo,
  this.cardProviderLogoPosition = CardProviderLogoPosition.right,
  this.backgroundDecorationImage,
  this.showValidFrom = true,
  this.showValidThru = true,
  super.key,
  this.currencySymbol = r'$',
  this.balance = 0.0,
  this.showBalance = false,
  this.autoHideBalance = false,
  this.enableFlipping = false,
  this.cvvNumber = '***',
  this.disableHapticFeedBack = false,
});