copyWith method
CoreCardIoResponse
copyWith({
- CoreCardIoCardType? cardType,
- String? cardholderName,
- String? cardNumber,
- String? redactedCardNumber,
- int? expiryMonth,
- int? expiryYear,
- String? cvv,
- String? postalCode,
inherited
Implementation
CoreCardIoResponse copyWith(
{CoreCardIoCardType? cardType,
String? cardholderName,
String? cardNumber,
String? redactedCardNumber,
int? expiryMonth,
int? expiryYear,
String? cvv,
String? postalCode}) {
return CoreCardIoResponse(
cardType: cardType ?? this.cardType,
cardholderName: cardholderName ?? this.cardholderName,
cardNumber: cardNumber ?? this.cardNumber,
redactedCardNumber: redactedCardNumber ?? this.redactedCardNumber,
expiryMonth: expiryMonth ?? this.expiryMonth,
expiryYear: expiryYear ?? this.expiryYear,
cvv: cvv ?? this.cvv,
postalCode: postalCode ?? this.postalCode,
);
}