copyWith method
Implementation
CardData copyWith({
String? id,
int? bin,
String? maskedCard,
int? expiryMonth,
int? expiryYear,
String? nickname,
String? brand,
String? cardType,
Customer? customer,
}) =>
CardData(
id: id ?? this.id,
bin: bin ?? this.bin,
maskedCard: maskedCard ?? this.maskedCard,
expiryMonth: expiryMonth ?? this.expiryMonth,
expiryYear: expiryYear ?? this.expiryYear,
nickname: nickname ?? this.nickname,
brand: brand ?? this.brand,
cardType: cardType ?? this.cardType,
customer: customer ?? this.customer,
);