PaymentCard constructor

PaymentCard({
  1. required String? number,
  2. required String? cvc,
  3. required int? expiryMonth,
  4. required int? expiryYear,
  5. String? name,
  6. String? addressLine1,
  7. String? addressLine2,
  8. String? addressLine3,
  9. String? addressLine4,
  10. String? addressPostCode,
  11. String? addressCountry,
  12. String? country,
})

Implementation

PaymentCard(
    {required String? number,
    required String? cvc,
    required this.expiryMonth,
    required this.expiryYear,
    String? name,
    String? addressLine1,
    String? addressLine2,
    String? addressLine3,
    String? addressLine4,
    String? addressPostCode,
    String? addressCountry,
    String? country}) {
  this.number = number;
  this.cvc = cvc;
  this.name = StringUtils.nullify(name);
  this.addressLine1 = StringUtils.nullify(addressLine1);
  this.addressLine2 = StringUtils.nullify(addressLine2);
  this.addressLine3 = StringUtils.nullify(addressLine3);
  this.addressLine4 = StringUtils.nullify(addressLine4);
  this.addressCountry = StringUtils.nullify(addressCountry);
  this.addressPostalCode = StringUtils.nullify(addressPostalCode);

  this.country = StringUtils.nullify(country);
  this.type = type;
}