copyWith method

NumberOptions copyWith({
  1. String? defaultFormat,
  2. String? defaultLocale,
  3. bool? tryFormattedFirst,
})

Returns a copy with selected fields replaced.

Implementation

NumberOptions copyWith({
  String? defaultFormat,
  String? defaultLocale,
  bool? tryFormattedFirst,
}) => NumberOptions(
  defaultFormat: defaultFormat ?? this.defaultFormat,
  defaultLocale: defaultLocale ?? this.defaultLocale,
  tryFormattedFirst: tryFormattedFirst ?? this.tryFormattedFirst,
);