copyWith method

ConvertConfig copyWith({
  1. String? locale,
  2. NumberOptions? numbers,
  3. DateOptions? dates,
  4. BoolOptions? bools,
  5. UriOptions? uri,
  6. TypeRegistry? registry,
  7. ExceptionHook? onException,
})

Returns a copy of this config with the provided fields replaced.

Implementation

ConvertConfig copyWith({
  String? locale,
  NumberOptions? numbers,
  DateOptions? dates,
  BoolOptions? bools,
  UriOptions? uri,
  TypeRegistry? registry,
  ExceptionHook? onException,
}) => ConvertConfig(
  locale: locale ?? this.locale,
  numbers: numbers ?? this.numbers,
  dates: dates ?? this.dates,
  bools: bools ?? this.bools,
  uri: uri ?? this.uri,
  registry: registry ?? this.registry,
  onException: onException ?? this.onException,
);