copyWith method

Currency copyWith({
  1. String? symbol,
  2. String? name,
  3. String? symbolNative,
  4. String? decimalDigits,
  5. String? rounding,
  6. String? code,
  7. String? namePlurals,
})

Implementation

Currency copyWith({
  String? symbol,
  String? name,
  String? symbolNative,
  String? decimalDigits,
  String? rounding,
  String? code,
  String? namePlurals,
}) {
  return Currency(
    symbol: symbol ?? this.symbol,
    name: name ?? this.name,
    symbolNative: symbolNative ?? this.symbolNative,
    decimalDigits: decimalDigits ?? this.decimalDigits,
    rounding: rounding ?? this.rounding,
    code: code ?? this.code,
    namePlurals: namePlurals ?? this.namePlurals,
  );
}