copyWith method

DecodeOptions copyWith({
  1. bool? allowDots,
  2. bool? allowEmptyLists,
  3. int? listLimit,
  4. Encoding? charset,
  5. bool? charsetSentinel,
  6. bool? comma,
  7. bool? decodeDotInKeys,
  8. Pattern? delimiter,
  9. int? depth,
  10. Duplicates? duplicates,
  11. bool? ignoreQueryPrefix,
  12. bool? interpretNumericEntities,
  13. num? parameterLimit,
  14. bool? parseLists,
  15. bool? strictNullHandling,
  16. bool? strictDepth,
  17. Decoder? decoder,
})

Returns a new DecodeOptions instance with updated values.

Implementation

DecodeOptions copyWith({
  bool? allowDots,
  bool? allowEmptyLists,
  int? listLimit,
  Encoding? charset,
  bool? charsetSentinel,
  bool? comma,
  bool? decodeDotInKeys,
  Pattern? delimiter,
  int? depth,
  Duplicates? duplicates,
  bool? ignoreQueryPrefix,
  bool? interpretNumericEntities,
  num? parameterLimit,
  bool? parseLists,
  bool? strictNullHandling,
  bool? strictDepth,
  Decoder? decoder,
}) =>
    DecodeOptions(
      allowDots: allowDots ?? this.allowDots,
      allowEmptyLists: allowEmptyLists ?? this.allowEmptyLists,
      listLimit: listLimit ?? this.listLimit,
      charset: charset ?? this.charset,
      charsetSentinel: charsetSentinel ?? this.charsetSentinel,
      comma: comma ?? this.comma,
      decodeDotInKeys: decodeDotInKeys ?? this.decodeDotInKeys,
      delimiter: delimiter ?? this.delimiter,
      depth: depth ?? this.depth,
      duplicates: duplicates ?? this.duplicates,
      ignoreQueryPrefix: ignoreQueryPrefix ?? this.ignoreQueryPrefix,
      interpretNumericEntities:
          interpretNumericEntities ?? this.interpretNumericEntities,
      parameterLimit: parameterLimit ?? this.parameterLimit,
      parseLists: parseLists ?? this.parseLists,
      strictNullHandling: strictNullHandling ?? this.strictNullHandling,
      strictDepth: strictDepth ?? this.strictDepth,
      decoder: decoder ?? _decoder,
    );