DioException.requestCancelled constructor
DioException.requestCancelled({
- required RequestOptions requestOptions,
- required Object? reason,
- 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.',
);