copyWith method
- bool? addQueryPrefix,
- bool? allowDots,
- bool? allowEmptyLists,
- ListFormat? listFormat,
- Encoding? charset,
- bool? charsetSentinel,
- String? delimiter,
- bool? encode,
- bool? encodeDotInKeys,
- bool? encodeValuesOnly,
- Format? format,
- bool? skipNulls,
- bool? strictNullHandling,
- bool? commaRoundTrip,
- bool? commaCompactNulls,
- Sorter? sort,
- dynamic filter,
- DateSerializer? serializeDate,
- Encoder? encoder,
Returns a new EncodeOptions instance with updated values.
Implementation
EncodeOptions copyWith({
final bool? addQueryPrefix,
final bool? allowDots,
final bool? allowEmptyLists,
final ListFormat? listFormat,
final Encoding? charset,
final bool? charsetSentinel,
final String? delimiter,
final bool? encode,
final bool? encodeDotInKeys,
final bool? encodeValuesOnly,
final Format? format,
final bool? skipNulls,
final bool? strictNullHandling,
final bool? commaRoundTrip,
final bool? commaCompactNulls,
final Sorter? sort,
final dynamic filter,
final DateSerializer? serializeDate,
final Encoder? encoder,
}) =>
EncodeOptions(
addQueryPrefix: addQueryPrefix ?? this.addQueryPrefix,
allowDots: allowDots ?? this.allowDots,
allowEmptyLists: allowEmptyLists ?? this.allowEmptyLists,
listFormat: listFormat ?? this.listFormat,
charset: charset ?? this.charset,
charsetSentinel: charsetSentinel ?? this.charsetSentinel,
delimiter: delimiter ?? this.delimiter,
encode: encode ?? this.encode,
encodeDotInKeys: encodeDotInKeys ?? this.encodeDotInKeys,
encodeValuesOnly: encodeValuesOnly ?? this.encodeValuesOnly,
format: format ?? this.format,
skipNulls: skipNulls ?? this.skipNulls,
strictNullHandling: strictNullHandling ?? this.strictNullHandling,
commaRoundTrip: commaRoundTrip ?? this.commaRoundTrip,
commaCompactNulls: commaCompactNulls ?? this.commaCompactNulls,
sort: sort ?? this.sort,
filter: filter ?? this.filter,
serializeDate: serializeDate ?? _serializeDate,
encoder: encoder ?? _encoder,
);