DecodeOptions constructor
const
DecodeOptions({ - bool? allowDots,
- Decoder? decoder,
- @Deprecated('Use Decoder instead; see DecodeOptions.decoder') LegacyDecoder? legacyDecoder,
- 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,
@Deprecated('Use Decoder instead; see DecodeOptions.decoder')
LegacyDecoder? legacyDecoder,
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 ?? false),
decodeDotInKeys = decodeDotInKeys ?? false,
_decoder = decoder,
_legacyDecoder = legacyDecoder,
assert(
charset == utf8 || charset == latin1,
'Invalid charset',
),
assert(
!(decodeDotInKeys ?? false) || allowDots != false,
'decodeDotInKeys requires allowDots to be true',
),
assert(
parameterLimit > 0,
'Parameter limit must be positive',
);