remainingDevicesToRegister property

List<DeviceConfiguration<DeviceRegistration>> get remainingDevicesToRegister

The devices in this study that still need to be registered.

Includes both the primary device and connected devices.

Returns an empty list if the deployment status is not available yet.

Implementation

List<DeviceConfiguration> get remainingDevicesToRegister => (deploymentStatus == null)
    ? []
    : deploymentStatus!.deviceStatusList
          .where((deviceStatus) => deviceStatus.status == DeviceDeploymentStatusTypes.Unregistered)
          .map((deviceStatus) => deviceStatus.device)
          .toList();