restart method
void
restart()
Restarts the upload after if the upload failed and came to a complete stop
Implementation
void restart() {
if (!_uploadFailed)
throw Exception('Upload hasn\'t yet failed, use restart only after all retries have failed.');
_chunkCount = 0;
_chunkByteSize = chunkSize * 1024;
_attemptCount = 0;
_currentCancelToken = null;
_offline = false;
_paused = false;
_stopped = false;
_uploadFailed = false;
_sendChunks();
}