copyWith method

PaymentMethodFullData copyWith({
  1. String? brand,
  2. String? holderName,
  3. String? displayNumber,
  4. String? bin,
  5. int? year,
  6. int? month,
  7. String? lastDigits,
  8. String? firstDigits,
  9. String? maskedNumber,
})

Implementation

PaymentMethodFullData copyWith({
  String? brand,
  String? holderName,
  String? displayNumber,
  String? bin,
  int? year,
  int? month,
  String? lastDigits,
  String? firstDigits,
  String? maskedNumber,
}) {
  return PaymentMethodFullData(
    brand: brand ?? this.brand,
    holderName: holderName ?? this.holderName,
    displayNumber: displayNumber ?? this.displayNumber,
    bin: bin ?? this.bin,
    year: year ?? this.year,
    month: month ?? this.month,
    lastDigits: lastDigits ?? this.lastDigits,
    firstDigits: firstDigits ?? this.firstDigits,
    maskedNumber: maskedNumber ?? this.maskedNumber,
  );
}