ApiFactory class
Factory for network clients, interceptors, and error transformers used by other libraries.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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).
read / write
- 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.
read / write
- 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.