APIContext class
API Context that contain info for the API endpoint
Constructors
Properties
- address ↔ String
-
getter/setter pair
- apiKey ↔ String
-
getter/setter pair
- getUrl → String
-
Build the URL from context parameters
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, dynamic> -
getter/setter pair
- methodType ↔ int
-
getter/setter pair
-
parameters
↔ Map<
String, dynamic> -
getter/setter pair
- path ↔ String
-
getter/setter pair
- port ↔ int
-
getter/setter pair
- publicKey ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- ssl ↔ bool
-
getter/setter pair
Methods
-
addHeader(
String header, dynamic value) → void - Add/update headers
-
addParameter(
String key, dynamic value) → void - Add parameter
-
getAddress(
) → String - get address
-
getApiKey(
) → String - get api key
-
getHeaders(
) → Map< String, dynamic> - Get headers as an array
-
getMethodType(
) → int - Get method type
-
getParameters(
) → Map< String, dynamic> - Get parameters
-
getPath(
) → String - get path endpoint
-
getPort(
) → int - Get port number
-
getPublicKey(
) → String - get public key
-
getSSL(
) → bool - get ssl
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAddress(
String address) → void - set address
-
setApiKey(
String apiKey) → void - set api key
-
setMethodType(
int methodType) → void -
Set methode type
1
2
for GET POST AND PUT -
setPath(
String path) → void - set path
-
setPort(
int port) → void - Set port number
-
setPublicKey(
String publicKey) → void - set public key
-
setSSL(
bool ssl) → void - set ssl
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited