copyWith method

EncodeOptions copyWith({
  1. bool? addQueryPrefix,
  2. bool? allowDots,
  3. bool? allowEmptyLists,
  4. ListFormat? listFormat,
  5. Encoding? charset,
  6. bool? charsetSentinel,
  7. String? delimiter,
  8. bool? encode,
  9. bool? encodeDotInKeys,
  10. bool? encodeValuesOnly,
  11. Format? format,
  12. bool? skipNulls,
  13. bool? strictNullHandling,
  14. bool? commaRoundTrip,
  15. Sorter? sort,
  16. dynamic filter,
  17. DateSerializer? serializeDate,
  18. 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,
    );