qs_dart library

A query string decoder (parser) and encoder (stringifier).

Classes

DecodeOptions
Options that configure the output of QS.decode.
EncodeOptions
Options that configure the output of QS.encode.
QS
A query string decoder (parser) and encoder (stringifier) class.
Undefined
Internal model to distinguish between null and not set value

Enums

Duplicates
An enum of all available duplicate key handling strategies.
Format
An enum of all supported URI component encoding formats.
ListFormat
An enum of all available list format options.
Sentinel
An enum of all available sentinels.

Extensions

UriExtension on Uri

Functions

decode(dynamic input, [DecodeOptions options = const DecodeOptions()]) Map<String, dynamic>
Convenience method for QS.decode
encode(Object? object, [EncodeOptions options = const EncodeOptions()]) String
Convenience method for QS.encode

Typedefs

DateSerializer = String? Function(DateTime date)
Decoder = dynamic Function(String? value, {Encoding? charset})
Encoder = String Function(dynamic value, {Encoding? charset, Format? format})
Formatter = String Function(String value)
ListFormatGenerator = String Function(String prefix, [String? key])
Sorter = int Function(dynamic a, dynamic b)