ApnHttpClient<T> class

Constructors

ApnHttpClient({required RestClientBuilder<T> clientBuilder, required String baseUrl, Map<String, dynamic>? headers, bool isDebug = false, ValueSetter<Dio>? onDioReady, Map<int, String>? errorMessages})

Properties

baseUrl String
final
client ↔ T
getter/setter pair
clientBuilder RestClientBuilder<T>
final
dio → Dio
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>?
final
isDebug bool
final
onDioReady ValueSetter<Dio>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAdapter(HttpClientAdapter adapter) → void
setErrorMessages(Map<int, String> errorMessages) → void
setHeader(String key, String? value) → void
toString() String
A string representation of this object.
inherited

Operators

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