RequestParamsMutable class
A mutable RequestParams.
This class is not normally used.
It is only needed for testing, when a test program wants to build up and/or modify a set of parameters which are then used to simulate different HTTP requests.
- Inheritance
- Object
- RequestParams
- RequestParamsMutable
Constructors
- RequestParamsMutable()
- Constructor [...]
- RequestParamsMutable.fromUrl(String uri)
- Parse the query parameters from a URI. [...]
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isEmpty → bool
-
Returns true if there are no keys.
read-only, inherited
- isNotEmpty → bool
-
Returns true if there is at least one key.
read-only, inherited
-
keys
→ Iterable<
String> -
All the keys.
read-only, inherited
- length → int
-
The number of keys.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
add(
String key, String value) → void - Adds a key:value to the parameters. [...]
-
clear(
) → void - Removes all values.
-
remove(
String key, String value, { bool raw: false }) → void - Remove a particular value associated with a key. [...]
-
removeAll(
String key) → void - Removes all the values associated with a particular key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
-
values(
String key, { bool raw: false }) → List< String> -
Retrieves the values for a key, possibly multiple values. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
-
operator [](
String key) → String -
Retrieves a single sanitized value for the key. [...]
inherited