socketForDevice method

DashboardSocket? socketForDevice(
  1. Device device
)

Returns the corresponding DashboardSocket for the device

Returns null if no device is passed or there is no corresponding socket

Implementation

DashboardSocket? socketForDevice(Device device) => switch (device) {
  Device.SUBSYSTEMS => data,
  Device.VIDEO => video,
  Device.AUTONOMY => autonomy,
  _ => null,
};