DioException.sendTimeout constructor

DioException.sendTimeout({
  1. required Duration timeout,
  2. required RequestOptions requestOptions,
})

Implementation

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