ApiClient constructor

ApiClient()

Creates a new instance of ApiClient using the shared base URL.

Implementation

ApiClient() {
  dio = Dio(BaseOptions(
    baseUrl: _baseUrl.toString(),
    headers: {'Content-Type': 'application/json'},
  ));

  // Add cURL logger for debugging HTTP requests
  dio.interceptors.add(CurlLoggerDioInterceptor(printOnSuccess: true));
}