ElectricalModel constructor

ElectricalModel()

Listens to all the DriveMetrics and updates the UI.

Implementation

ElectricalModel() {
    metrics.addListener(_setFlag);
    timer = Timer.periodic(const Duration(milliseconds: 10), _updateData);
}