copyWith method

PluralRulesOptions copyWith({
  1. Type? type,
  2. Digits? digits,
  3. RoundingMode? roundingMode,
  4. int? minimumIntegerDigits,
  5. TrailingZeroDisplay? trailingZeroDisplay,
  6. LocaleMatcher? localeMatcher,
})

Implementation

PluralRulesOptions copyWith({
  Type? type,
  Digits? digits,
  RoundingMode? roundingMode,
  int? minimumIntegerDigits,
  TrailingZeroDisplay? trailingZeroDisplay,
  LocaleMatcher? localeMatcher,
}) {
  return PluralRulesOptions(
    type: type ?? this.type,
    digits: digits ?? this.digits,
    roundingMode: roundingMode ?? this.roundingMode,
    minimumIntegerDigits: minimumIntegerDigits ?? this.minimumIntegerDigits,
    trailingZeroDisplay: trailingZeroDisplay ?? this.trailingZeroDisplay,
    localeMatcher: localeMatcher ?? this.localeMatcher,
  );
}