stop method
void
stop()
Implementation
void stop() {
_stopped = true;
_uploadFailed = true;
_currentCancelToken!.cancel(Exception('Upload cancelled by the user'));
if (onError != null) {
onError!(
'Upload cancelled by the user.',
_chunkCount,
_attemptCount,
);
}
}