URLSearchParams class
The interface defines utility methods to work with the query
string of a URL.
An object implementing can directly be used in a for...of
structure to iterate over key/value pairs in the same order as
they appear in the query string, for example the following two
lines are equivalent:
[for (const key, value
of mySearchParams) {}
for (const key, value
of mySearchParams.entries()) {}
]
Note: This feature is available in Web Workers
- Inheritance
-
- Object
- JsIterable<
JsArray< String> > - URLSearchParams
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- URLSearchParams([dynamic init])
-
factory
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
-
append(
String name, String value) → void -
Available on URLSearchParams, provided by the PropsURLSearchParams extension
-
delete(
String name) → void -
Available on URLSearchParams, provided by the PropsURLSearchParams extension
-
get(
String name) → String? -
Available on URLSearchParams, provided by the PropsURLSearchParams extension
-
getAll(
String name) → Iterable< String> -
Available on URLSearchParams, provided by the PropsURLSearchParams extension
-
has(
String name) → bool -
Available on URLSearchParams, provided by the PropsURLSearchParams extension
-
mToString(
) → String -
Available on URLSearchParams, provided by the PropsURLSearchParams extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
String name, String value) → void -
Available on URLSearchParams, provided by the PropsURLSearchParams extension
-
sort(
) → void -
Available on URLSearchParams, provided by the PropsURLSearchParams extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited