DioException.transformTimeout constructor

DioException.transformTimeout({
  1. required Duration timeout,
  2. required RequestOptions requestOptions,
  3. Object? error,
})

Implementation

factory DioException.transformTimeout({
  required Duration timeout,
  required RequestOptions requestOptions,
  Object? error,
}) =>
    DioException(
      type: DioExceptionType.transformTimeout,
      requestOptions: requestOptions,
      response: null,
      error: error,
      message: 'The request took longer than $timeout to transform data. '
          'It was aborted. '
          'To get rid of this exception, try raising the '
          'RequestOptions.transformTimeout above the duration of $timeout or '
          'improve the response data transformation.',
    );