Request class

Inheritance

Constructors

Request(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 and value into _params map
inherited
addParams(Map<String, dynamic> values) → void
This add a map values into _params map
inherited
clearParams() → void
Clears _params map
inherited
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 Json
inherited
toString() String
A string representation of this object.
inherited

Operators

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