DecodeOptions constructor

const DecodeOptions({
  1. bool? allowDots,
  2. Decoder? decoder,
  3. bool? decodeDotInKeys,
  4. bool allowEmptyLists = false,
  5. int listLimit = 20,
  6. Encoding charset = utf8,
  7. bool charsetSentinel = false,
  8. bool comma = false,
  9. Pattern delimiter = '&',
  10. int depth = 5,
  11. Duplicates duplicates = Duplicates.combine,
  12. bool ignoreQueryPrefix = false,
  13. bool interpretNumericEntities = false,
  14. num parameterLimit = 1000,
  15. bool parseLists = true,
  16. bool strictDepth = false,
  17. bool strictNullHandling = false,
  18. bool throwOnLimitExceeded = false,
})

Implementation

const DecodeOptions({
  bool? allowDots,
  Decoder? decoder,
  bool? decodeDotInKeys,
  this.allowEmptyLists = false,
  this.listLimit = 20,
  this.charset = utf8,
  this.charsetSentinel = false,
  this.comma = false,
  this.delimiter = '&',
  this.depth = 5,
  this.duplicates = Duplicates.combine,
  this.ignoreQueryPrefix = false,
  this.interpretNumericEntities = false,
  this.parameterLimit = 1000,
  this.parseLists = true,
  this.strictDepth = false,
  this.strictNullHandling = false,
  this.throwOnLimitExceeded = false,
})  : allowDots = allowDots ?? decodeDotInKeys == true || false,
      decodeDotInKeys = decodeDotInKeys ?? false,
      _decoder = decoder,
      assert(
        charset == utf8 || charset == latin1,
        'Invalid charset',
      );