TaskControl constructor
TaskControl({
- required int triggerId,
- TaskConfiguration? task,
- DeviceConfiguration<
DeviceRegistration> ? targetDevice, - Control control = Control.Start,
Create a TaskControl.
Implementation
TaskControl({
required this.triggerId,
this.task,
this.targetDevice,
this.control = Control.Start,
}) : super() {
if (task != null) taskName = task!.name;
if (targetDevice != null) {
destinationDeviceRoleName = targetDevice!.roleName;
}
}