copyWith method

NumberFormatOptions copyWith({
  1. FormatStyle? style,
  2. String? currency,
  3. LocaleMatcher? localeMatcher,
  4. SignDisplay? signDisplay,
  5. Notation? notation,
  6. Grouping? useGrouping,
  7. String? numberingSystem,
  8. RoundingMode? roundingMode,
  9. TrailingZeroDisplay? trailingZeroDisplay,
  10. int? minimumIntegerDigits,
  11. Digits? digits,
})

Implementation

NumberFormatOptions copyWith({
  FormatStyle? style,
  String? currency,
  LocaleMatcher? localeMatcher,
  SignDisplay? signDisplay,
  Notation? notation,
  Grouping? useGrouping,
  String? numberingSystem,
  RoundingMode? roundingMode,
  TrailingZeroDisplay? trailingZeroDisplay,
  int? minimumIntegerDigits,
  Digits? digits,
}) {
  return NumberFormatOptions.custom(
    style: style ?? this.style,
    currency: currency ?? this.currency,
    localeMatcher: localeMatcher ?? this.localeMatcher,
    signDisplay: signDisplay ?? this.signDisplay,
    notation: notation ?? this.notation,
    useGrouping: useGrouping ?? this.useGrouping,
    numberingSystem: numberingSystem ?? this.numberingSystem,
    roundingMode: roundingMode ?? this.roundingMode,
    trailingZeroDisplay: trailingZeroDisplay ?? this.trailingZeroDisplay,
    minimumIntegerDigits: minimumIntegerDigits ?? this.minimumIntegerDigits,
    digits: digits ?? this.digits,
  );
}