RestAPI class

Constructors

RestAPI({AdeptChopperClient? chopperClient, String? apiUrl, Uri? apiUri, Client? httpClient, Iterable? interceptors, Authenticator? authenticator, Converter? converter, ErrorConverter? errorConverter, Map<Type, ChopperService>? services, Duration? timeout})

Properties

apiUri Uri
getter/setter pair
apiUrl String
getter/setter pair
authenticator ↔ Authenticator?
getter/setter pair
chopperClient AdeptChopperClient
getter/setter pair
converter ↔ Converter?
getter/setter pair
errorConverter ↔ ErrorConverter?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
httpClient ↔ Client?
getter/setter pair
interceptors Iterable
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
services Map<Type, ChopperService>
getter/setter pair
timeout Duration?
getter/setter pair

Methods

addService(ChopperService service) → void
dispose() → void
getGenericLocalizedMessageFromException(dynamic exception) String?
getLocalizedMessageFromException(dynamic exception) String?
Implement this method when checked what exceptions could be
getLocalizedMessageFromHttpResultCode(int? code) String?
getLocalizedMessageFromResponse({Response? response, int? code}) String?
init() → void
initServices() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
service<T extends ChopperService>(Type type) → T
toString() String
A string representation of this object.
inherited

Operators

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