Query class

Arbitrary query parameters.

Implemented types

Constructors

Query([Map<String, Iterable<String>> parameters = const {}])

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty → dynamic
Returns true if the collection is empty.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addValue(String key, String value) → void
Adds a new value for the key.
merge(QueryEncodable encodable) → void
Merges parameters from another encodable into this object.
mergeAll(Iterable<QueryEncodable> encodables) → void
Merges parameters from other encodables into this object.
mergeMap(Map<String, Iterable<String>> parameters) → void
Merges the query parameters into this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toQuery() Map<String, List<String>>
Returns the map representing query parameters. Each key may have zero or more values. {'foo': ['bar', 'baz']} represents ?foo=bar&foo=baz
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited