QS class final
QS (Dart)
Reference-style query‑string codec that mirrors the semantics of the
popular Node qs
library. Provides two entry points: decode and
encode.
Highlights
- RFC 3986 / RFC 1738 output formatting via Format.
- Multiple list notations via ListFormat.
- Duplicate handling on decode via Duplicates.
- Pluggable encoder/decoder, custom key sorting and filtering hooks.
- Optional query prefix and charset sentinel emission.
Constructors
- QS.new()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
dynamic input, [DecodeOptions? options]) → Map< String, dynamic> - Decode a query string or a pre-parsed map into a structured map.
-
encode(
Object? object, [EncodeOptions? options]) → String - Encode a map/iterable into a query string.