lastUpdatedOn property
The time when this device deployment was last updated. This corresponds to the most recent device registration as part of this device deployment.
Implementation
DateTime get lastUpdatedOn {
var latestUpdate = registration.registrationCreatedOn;
for (var registration in connectedDeviceRegistrations.values) {
if (registration != null &&
registration.registrationCreatedOn.isAfter(latestUpdate)) {
latestUpdate = registration.registrationCreatedOn;
}
}
return latestUpdate;
}