retry method
Implementation
Future<void> retry(int index) async {
try {
this.index = index;
await _sendPostRequest(requests[index]);
} catch (e) {
var streamData = StreamData(index, 0, 'error');
_progressStreamController.add(streamData);
}
}