copyWith method

Card copyWith({
  1. String? number,
  2. String? exMonth,
  3. String? exYear,
  4. String? cvv,
})

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,
  );
}