retry method
Reset and start the whole sequence over (e.g. after an error).
Implementation
Future<void> retry() async {
_holdTimer?.cancel();
for (final img in _state.captured) {
if (await img.file.exists()) await img.file.delete();
}
await _releaseCamera();
if (_disposed) return;
await initialize();
}