copyWith method

  1. @override
MatexCountryMetadata copyWith({
  1. List<double>? vatRates,
  2. String? currency,
  3. String? code,
  4. String? id,
})
override

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,
  );
}