copyWith method

PaymentInfoModel copyWith({
  1. String? number,
  2. String? verificationValue,
  3. String? firstName,
  4. String? lastName,
  5. String? month,
  6. String? year,
})

Implementation

PaymentInfoModel copyWith({
  String? number,
  String? verificationValue,
  String? firstName,
  String? lastName,
  String? month,
  String? year,
}) {
  return PaymentInfoModel(
    number: number ?? this.number,
    verificationValue: verificationValue ?? this.verificationValue,
    firstName: firstName ?? this.firstName,
    lastName: lastName ?? this.lastName,
    month: month ?? this.month,
    year: year ?? this.year,
  );
}