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.
no setterinherited
- isEmpty → bool
-
Returns true if there are no keys.
no setterinherited
- isNotEmpty → bool
-
Returns true if there is at least one key.
no setterinherited
-
keys
→ Iterable<
String> -
All the keys.
no setterinherited
- length → int
-
The number of keys.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
String key, String value) → void -
Adds a key:value to the parameters.
override
-
clear(
) → void - Removes all values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String key, String value, {bool raw = false, ParamsMode mode = ParamsMode.standard}) → void - Remove a particular value associated with a key.
-
removeAll(
String key) → void - Removes all the values associated with a particular key.
-
toString(
) → String -
A string representation of this object.
inherited
-
values(
String key, {bool raw = false, ParamsMode mode = ParamsMode.standard}) → List< String> -
Retrieves the values for a key, possibly multiple values.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String key) → String -
Retrieves a single fully sanitized value for the key.
inherited