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-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
inherited
Static Properties
- appKeyApi → Dio
-
Dio instance for appkey-based Kakao API.
final
- appKeyInterceptor ↔ Interceptor
-
read / write
- authApi → Dio
-
Dio instance for token-based Kakao API.
final
- kaInterceptor ↔ Interceptor
-
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.