onNewData method

void onNewData(
  1. AutonomyData value
)

A handler to call when new data arrives. Updates data and the UI.

Implementation

void onNewData(AutonomyData value) {
	data = value;
	services.files.logData(value);
	notifyListeners();
}