cleanInactiveDevices method
Implementation
void cleanInactiveDevices(DateTime now) {
deviceList.removeWhere((key, device) {
final dead = now.difference(device.activeTime).inSeconds > 120;
if (dead) device.dispose();
return dead;
});
_locationKeys.removeWhere((_, key) => !deviceList.containsKey(key));
}