DecodeOptions constructor
const
DecodeOptions({ - bool? allowDots,
- Decoder? decoder,
- bool? decodeDotInKeys,
- bool allowEmptyLists = false,
- int listLimit = 20,
- Encoding charset = utf8,
- bool charsetSentinel = false,
- bool comma = false,
- Pattern delimiter = '&',
- int depth = 5,
- Duplicates duplicates = Duplicates.combine,
- bool ignoreQueryPrefix = false,
- bool interpretNumericEntities = false,
- num parameterLimit = 1000,
- bool parseLists = true,
- bool strictDepth = false,
- bool strictNullHandling = false,
- 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',
);