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. bool? throwOnLimitExceeded,
  18. Decoder? decoder,
  19. LegacyDecoder? legacyDecoder,
})

Return a new DecodeOptions with the provided overrides.

Implementation

DecodeOptions copyWith({
  final bool? allowDots,
  final bool? allowEmptyLists,
  final int? listLimit,
  final Encoding? charset,
  final bool? charsetSentinel,
  final bool? comma,
  final bool? decodeDotInKeys,
  final Pattern? delimiter,
  final int? depth,
  final Duplicates? duplicates,
  final bool? ignoreQueryPrefix,
  final bool? interpretNumericEntities,
  final num? parameterLimit,
  final bool? parseLists,
  final bool? strictNullHandling,
  final bool? strictDepth,
  final bool? throwOnLimitExceeded,
  final Decoder? decoder,
  final LegacyDecoder? legacyDecoder,
}) =>
    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,
      throwOnLimitExceeded: throwOnLimitExceeded ?? this.throwOnLimitExceeded,
      decoder: decoder ?? _decoder,
      legacyDecoder: legacyDecoder ?? _legacyDecoder,
    );