Request class
- Inheritance
-
- Object
- BaseRequest
- Request
Constructors
-
Request.new(Map<
String, dynamic> params, {dynamic method = Method.POST})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- method ↔ Method
-
Defines The request method which can be Method.POST or Method.GET
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addParam(
{required String key, required dynamic value}) → void -
This adds an entry with
key
andvalue
into_params
mapinherited -
addParams(
Map< String, dynamic> values) → void -
This add a map
values
into_params
mapinherited -
clearParams(
) → void -
Clears
_params
mapinherited -
has(
String key) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
params2Query(
) → String -
Convert params map to query for using in requests with Method.GET method
inherited
-
removeParam(
{required String key}) → void -
Removes a param with
key
key from_params
inherited -
toJson(
) → String -
Converts
_params
to Jsoninherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited