DioException.requestCancelled constructor

DioException.requestCancelled({
  1. required RequestOptions requestOptions,
  2. required Object? reason,
  3. StackTrace? stackTrace,
})

Implementation

factory DioException.requestCancelled({
  required RequestOptions requestOptions,
  required Object? reason,
  StackTrace? stackTrace,
}) =>
    DioException(
      type: DioExceptionType.cancel,
      requestOptions: requestOptions,
      response: null,
      error: reason,
      stackTrace: stackTrace,
      message: 'The request was manually cancelled by the user.',
    );