copyWith method

Data copyWith({
  1. String? id,
  2. String? email,
  3. String? address,
  4. String? reference,
  5. num? expectedAmountInUSD,
  6. num? expectedAmountInCrypto,
  7. num? feeInCrypto,
  8. num? feeInUSD,
  9. num? expectedAmountWithFeeInCrypto,
  10. String? crypto,
  11. String? baseFiat,
  12. num? baseFiatToUSDRate,
  13. num? usdToCryptoRate,
})

Implementation

Data copyWith({
  String? id,
  String? email,
  String? address,
  String? reference,
  num? expectedAmountInUSD,
  num? expectedAmountInCrypto,
  num? feeInCrypto,
  num? feeInUSD,
  num? expectedAmountWithFeeInCrypto,
  String? crypto,
  String? baseFiat,
  num? baseFiatToUSDRate,
  num? usdToCryptoRate,
}) =>
    Data(
      id: id ?? this.id,
      email: email ?? this.email,
      address: address ?? this.address,
      reference: reference ?? this.reference,
      expectedAmountInUSD: expectedAmountInUSD ?? this.expectedAmountInUSD,
      expectedAmountInCrypto:
          expectedAmountInCrypto ?? this.expectedAmountInCrypto,
      feeInCrypto: feeInCrypto ?? this.feeInCrypto,
      feeInUSD: feeInUSD ?? this.feeInUSD,
      expectedAmountWithFeeInCrypto:
          expectedAmountWithFeeInCrypto ?? this.expectedAmountWithFeeInCrypto,
      crypto: crypto ?? this.crypto,
      baseFiat: baseFiat ?? this.baseFiat,
      baseFiatToUSDRate: baseFiatToUSDRate ?? this.baseFiatToUSDRate,
      usdToCryptoRate: usdToCryptoRate ?? this.usdToCryptoRate,
    );