Last active
November 7, 2022 07:58
-
-
Save sinnoorc/be7ecb11b7e78eb7b5ec1588a528baa7 to your computer and use it in GitHub Desktop.
Api Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApiService { | |
ApiService._(); | |
static final _options = BaseOptions( | |
baseUrl: AppUrl.baseUrl, | |
connectTimeout: AppUrl.connectTimeout, | |
receiveTimeout: AppUrl.receiveTimeout, | |
responseType: ResponseType.json, | |
); | |
// dio instance | |
final Dio _dio = Dio(_options)..interceptors.add(LoggingInterceptor()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment