RestAPI class

Constructors

RestAPI.new()

Properties

apiKey String?
getter/setter pair
apiUrl String
getter/setter pair
authorizationHeader String?
no setter
connectTimeout Duration?
getter/setter pair
dio ↔ Dio
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>?
getter/setter pair
httpClientAdapter ↔ HttpClientAdapter?
getter/setter pair
receiveTimeout Duration?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendTimeout Duration?
getter/setter pair
tokenCallback TokenCallback?
getter/setter pair

Methods

dispose() → void
init({String? apiUrl, Duration? connectTimeout, Duration? receiveTimeout, Duration? sendTimeout, HttpClientAdapter? httpClientAdapter, Map<String, dynamic>? headers, String? apiKey, TokenCallback? tokenCallback}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

authorizationHeaderKey → const String
googleApiKeyKey → const String