firstDevice property

Device? get firstDevice

Implementation

Device? get firstDevice {
  if(!hasDevice) return null;
  if(hasBP) return bpDevices.first;
  if(hasBT) return btDevices.first;
  if(hasBG) return bgDevices.first;
  if(hasBC) return bcDevices.first;
  if(hasMS) return msDevices.first;
  if(hasOC) return ocDevices.first;
  if(hasPR) return prDevices.first;
  if(hasDD) return ddDevices.first;
  if(hasZL) return zlDevices.first;
  if(hasZI) return ziDevices.first;
  if(hasBE) return beDevices.first;
  return null;
}