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