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,
- Sorter? sort,
- dynamic filter,
- DateSerializer? serializeDate,
- Encoder? encoder,
Returns a new EncodeOptions instance with updated values.
Implementation
EncodeOptions copyWith({
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,
Sorter? sort,
dynamic filter,
DateSerializer? serializeDate,
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,
sort: sort ?? this.sort,
filter: filter ?? this.filter,
serializeDate: serializeDate ?? _serializeDate,
encoder: encoder ?? _encoder,
);