copyWith method

Country copyWith({
  1. String? name,
  2. String? isoCode,
  3. String? dialingCode,
  4. String? currency,
  5. String? currencyISO,
})

Creates a copy with modified values

Implementation

Country copyWith({
  String? name,
  String? isoCode,
  String? dialingCode,
  String? currency,
  String? currencyISO,
}) {
  return Country(
    name: name ?? this.name,
    isoCode: isoCode ?? this.isoCode,
    dialingCode: dialingCode ?? this.dialingCode,
    asset: asset,
    currency: currency ?? this.currency,
    currencyISO: currencyISO ?? this.currencyISO,
    assetCircleFlag: assetCircleFlag,
  );
}