UriExtension extension
Extensions that integrate qs_dart
with Uri
.
queryParametersQs
decodes the rawquery
string usingQS.decode
.toStringQs
re-encodesqueryParametersAll
usingQS.encode
with configurable options.
These helpers avoid the lossy behavior of Uri.queryParameters
(which flattens duplicate keys)
and let you round‑trip complex nested structures.
- on
Methods
-
queryParametersQs(
[DecodeOptions? options]) → Map< String, dynamic> -
Available on Uri, provided by the UriExtension extension
Decodes the rawquery
string into aMap<String, dynamic>
usingQS.decode
. -
toStringQs(
[EncodeOptions? options = const EncodeOptions(listFormat: ListFormat.repeat, skipNulls: false, strictNullHandling: false)]) → String -
Available on Uri, provided by the UriExtension extension
Returns a normalized string for thisUri
with the query encoded byQS.encode
.