HttpRepository constructor
HttpRepository(
- String basePath
Construct a new HttpRepository instance with baseUrl string
Each HttpRepository instance has its own dio instance, with unique baseUrl (prefix) and uses same cookies from base host
Implementation
HttpRepository(this.basePath) : super() {
dio = Dio();
if (useInterceptor) {
dio.interceptors.add(interceptorsWrapper);
}
}