copyWith method

CurrencyModel copyWith({
  1. String? currencyName,
  2. String? currencyCode,
  3. int? subUnit,
  4. String? symbol,
  5. dynamic decimalSeparator,
  6. dynamic decimalPlaces,
  7. String? thousandSeparator,
  8. double? exchange,
  9. int? available,
})

Implementation

CurrencyModel copyWith({
  String? currencyName,
  String? currencyCode,
  int? subUnit,
  String? symbol,
  dynamic decimalSeparator,
  dynamic decimalPlaces,
  String? thousandSeparator,
  double? exchange,
  int? available,
}) =>
    CurrencyModel(
      currencyName: currencyName ?? this.currencyName,
      currencyCode: currencyCode ?? this.currencyCode,
      subUnit: subUnit ?? this.subUnit,
      symbol: symbol ?? this.symbol,
      decimalSeparator: decimalSeparator ?? this.decimalSeparator,
      decimalPlaces: decimalPlaces ?? this.decimalPlaces,
      thousandSeparator: thousandSeparator ?? this.thousandSeparator,
      exchange: exchange ?? this.exchange,
      available: available ?? this.available,
    );