UriExtension extension

Extensions that integrate qs_dart with Uri.

  • queryParametersQs decodes the raw query string using QS.decode.
  • toStringQs re-encodes queryParametersAll using QS.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 raw query string into a Map<String, dynamic> using QS.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 this Uri with the query encoded by QS.encode.