ApiClientConfig class
Constructors
-
ApiClientConfig({required String baseUrl, Future<String?> getAccessToken()?, TokenStorage? tokenStorage, Future<bool> refreshToken()?, Duration connectTimeout = const Duration(seconds: 30), String authScheme = 'Bearer', ResponseHandlerInterface? responseHandler, RequestInterceptor? requestInterceptor, ResponseInterceptor? responseInterceptor})
-
-
ApiClientConfig.withStorage({required String baseUrl, required TokenStorage tokenStorage, Future<bool> refreshToken()?, Duration connectTimeout = const Duration(seconds: 30), String authScheme = 'Bearer'})
-
Config with custom TokenStorage.
factory
-
ApiClientConfig.withToken({required String baseUrl, required Future<String?> getAccessToken(), Future<bool> refreshToken()?, Duration connectTimeout = const Duration(seconds: 30), String authScheme = 'Bearer'})
-
Config with callback-based token (no custom storage).
factory
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited