ApiInterceptors constructor

ApiInterceptors({
  1. bool showLogging = true,
  2. required Function handleWhenUnauthorized,
  3. required dynamic handleResponse(
    1. Response options
    ),
  4. required dynamic handleOnError(
    1. DioException err,
    2. ErrorInterceptorHandler handler
    ),
  5. required dynamic handleOnRequest(
    1. RequestOptions options
    ),
})

Implementation

ApiInterceptors(
    {this.showLogging = true,
    required this.handleWhenUnauthorized,
    required this.handleResponse,
    required this.handleOnError,
    required this.handleOnRequest});