copyWith method
Implementation
Card copyWith({
String? number,
String? exMonth,
String? exYear,
String? cvv,
}) {
return Card(
number: number ?? this.number,
exMonth: exMonth ?? this.exMonth,
exYear: exYear ?? this.exYear,
cvv: cvv ?? this.cvv,
);
}