copyWith method

Currency copyWith({
  1. String? code,
  2. String? name,
  3. String? symbol,
  4. Country? country,
  5. List<Country>? countries,
})

Implementation

Currency copyWith({
  String? code,
  String? name,
  String? symbol,
  Country? country,
  List<Country>? countries,
}) {
  return Currency(
    code: code ?? this.code,
    name: name ?? this.name,
    symbol: symbol ?? this.symbol,
    country: country ?? this.country,
    countries: countries ?? this.countries,
  );
}