copyWith method
PreviewConversionModel
copyWith(
{ - num? convertedAmount,
- num? totalAmount,
- num? feeInUSD,
- num? feeInToCurrency,
- num? feeInFromCurrency,
- num? conversionFeeInUSD,
- num? conversionFeeInToCurrency,
- num? conversionFeeInFromCurrency,
- num? fromRate,
- num? toRate,
- num? intermediateUSDAmount,
})
Implementation
PreviewConversionModel copyWith({
num? convertedAmount,
num? totalAmount,
num? feeInUSD,
num? feeInToCurrency,
num? feeInFromCurrency,
num? conversionFeeInUSD,
num? conversionFeeInToCurrency,
num? conversionFeeInFromCurrency,
num? fromRate,
num? toRate,
num? intermediateUSDAmount,
}) {
return PreviewConversionModel(
convertedAmount: convertedAmount ?? this.convertedAmount,
totalAmount: totalAmount ?? this.totalAmount,
feeInUSD: feeInUSD ?? this.feeInUSD,
feeInToCurrency: feeInToCurrency ?? this.feeInToCurrency,
feeInFromCurrency: feeInFromCurrency ?? this.feeInFromCurrency,
conversionFeeInUSD: conversionFeeInUSD ?? this.conversionFeeInUSD,
conversionFeeInToCurrency:
conversionFeeInToCurrency ?? this.conversionFeeInToCurrency,
conversionFeeInFromCurrency:
conversionFeeInFromCurrency ?? this.conversionFeeInFromCurrency,
fromRate: fromRate ?? this.fromRate,
toRate: toRate ?? this.toRate,
intermediateUSDAmount:
intermediateUSDAmount ?? this.intermediateUSDAmount,
);
}