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. bool? commaCompactNulls,
  16. Sorter? sort,
  17. dynamic filter,
  18. DateSerializer? serializeDate,
  19. 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,
    );