onNewData method
- AutonomyData value
A handler to call when new data arrives. Updates data and the UI.
Implementation
void onNewData(AutonomyData value) {
if (!isPlayingBadApple) {
data = value;
}
services.files.logData(value);
notifyListeners();
}