copyWith method
ConvertConfig
copyWith({
- String? locale,
- NumberOptions? numbers,
- DateOptions? dates,
- BoolOptions? bools,
- UriOptions? uri,
- TypeRegistry? registry,
- 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,
);