ApiFactory class

Factory for network clients, interceptors, and error transformers used by other libraries.

Constructors

ApiFactory()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

appKeyApi → Dio
Dio instance for appkey-based Kakao API.
final
appKeyInterceptor ↔ Interceptor
DIO interceptor for App-key based API (Link, Local, Search, etc).
getter/setter pair
authApi → Dio
Dio instance for token-based Kakao API.
final
dapi → Dio
final
kaInterceptor ↔ Interceptor
DIO interceptor for all Kakao API that requires KA header.
getter/setter pair
kauthApi → Dio
Dio instance for Kakao OAuth server.
final

Static Methods

handleApiError<T>(Future<T> requestFunction()) Future<T>
transformApiError(DioError e) KakaoException
transforms DioError to KakaoException.