VirtualCreditCardWeb constructor

VirtualCreditCardWeb({
  1. required String cardNumber,
  2. required String cardHolderName,
  3. required String expiryMonth,
  4. required String expiryYear,
  5. required String cvv,
  6. bool? showShadow,
  7. Color? backgroundColor,
})

Implementation

VirtualCreditCardWeb(
    {required String cardNumber,
    required String cardHolderName,
    required String expiryMonth,
    required String expiryYear,
    required String cvv,
    bool? showShadow,
    Color? backgroundColor}) {
  this.cardNumber = cardNumber;
  this.cardHolderName = cardHolderName;
  this.expiryMonth = expiryMonth;
  this.expiryYear = expiryYear;
  this.cvv = cvv;
  if (showShadow != null) {
    this.showShadow = showShadow;
  }
  if (backgroundColor != null) {
    this.backgroundColor = backgroundColor;
  }
}