copyWith method
Returns a copy of the current object with modified properties.
id
, vatRates
, currency
, and code
are optional and will use
the current values if not provided.
Implementation
@override
MatexCountryMetadata copyWith({
List<double>? vatRates,
String? currency,
String? code,
String? id,
}) {
return MatexCountryMetadata(
currency: currency ?? this.currency,
vatRates: vatRates ?? this.vatRates,
code: code ?? this.code,
id: id ?? this.id,
);
}