BaseRequest class

Implementers

Constructors

BaseRequest(Map<String, dynamic> _params, {Method 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 pair
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
addParams(Map<String, dynamic> values) → void
This add a map values into _params map
clearParams() → void
Clears _params map
has(String key) bool
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
removeParam({required String key}) → void
Removes a param with key key from _params
toJson() String
Converts _params to Json
toString() String
A string representation of this object.
inherited

Operators

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