ApiInterceptors constructor
ApiInterceptors({
- bool showLogging = true,
- required Function handleWhenUnauthorized,
- required dynamic handleResponse(
- Response options
- required dynamic handleOnError(
- DioException err,
- ErrorInterceptorHandler handler
- required dynamic handleOnRequest(
- RequestOptions options
Implementation
ApiInterceptors(
{this.showLogging = true,
required this.handleWhenUnauthorized,
required this.handleResponse,
required this.handleOnError,
required this.handleOnRequest});