update method
- @override
- VideoData value
override
Updates data with new data.
Implementation
@override
void update(VideoData value) {
if (value.hasFrame()) return;
if (!checkVersion(value)) return;
cameraDetections.removeWhere((result) => result.details.name == value.details.name);
if (value.detectedObjects.isNotEmpty) {
cameraDetections.add(value.deepCopy());
cameraDetections.sort();
}
services.files.logData(value);
notifyListeners();
}