ElectricalModel constructor
Listens to all the DriveMetrics and updates the UI.
Implementation
ElectricalModel() {
metrics.addListener(_setFlag);
timer = Timer.periodic(const Duration(milliseconds: 10), _updateData);
}
Listens to all the DriveMetrics and updates the UI.
ElectricalModel() {
metrics.addListener(_setFlag);
timer = Timer.periodic(const Duration(milliseconds: 10), _updateData);
}