Client constructor
Client({
- required String baseURL,
- Map<
String, dynamic> ? headers, - bool showLogging = true,
- Function? handleWhenUnauthorized,
- Duration? connectTimeout,
- Duration? receiveTimeout,
- List<
int> ? hitCacheOnErrorExcept, - Duration? maxStaleCache,
- dynamic handleOnRequest(
- RequestOptions requestOptions
- dynamic handleOnResponse(
- Response response
- dynamic handleOnError(
- DioException err,
- ErrorInterceptorHandler handler
- bool useCache = false,
Implementation
Client(
{required this.baseURL,
this.headers,
this.showLogging = true,
this.handleWhenUnauthorized,
this.connectTimeout,
this.receiveTimeout,
this.hitCacheOnErrorExcept,
this.maxStaleCache,
this.handleOnRequest,
this.handleOnResponse,
this.handleOnError,
this.useCache = false});