copyWith method
NumberFormatOptions
copyWith({
- FormatStyle? style,
- String? currency,
- LocaleMatcher? localeMatcher,
- SignDisplay? signDisplay,
- Notation? notation,
- Grouping? useGrouping,
- String? numberingSystem,
- RoundingMode? roundingMode,
- TrailingZeroDisplay? trailingZeroDisplay,
- int? minimumIntegerDigits,
- 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,
);
}