copyWith method

Currency copyWith({
  1. String? isoCode,
  2. int? precision,
  3. String? symbol,
  4. String? pattern,
  5. String? groupSeparator,
  6. String? decimalSeparator,
})

Creates a Currency from an existing Currency with changes.

Implementation

Currency copyWith({
  String? isoCode,
  int? precision,
  String? symbol,
  String? pattern,
  String? groupSeparator,
  String? decimalSeparator,
}) =>
    Currency.create(isoCode ?? this.isoCode, precision ?? decimalDigits,
        symbol: symbol ?? this.symbol,
        pattern: pattern ?? this.pattern,
        groupSeparator: groupSeparator ?? this.groupSeparator,
        decimalSeparator: decimalSeparator ?? this.decimalSeparator);