copyWith method

Prices copyWith({
  1. String? currency,
  2. int? valueCents,
})

Implementation

Prices copyWith({
  String? currency,
  int? valueCents,
}) {
  return Prices(
    currency: currency ?? this.currency,
    valueCents: valueCents ?? this.valueCents,
  );
}