TaskControl constructor
TaskControl({
- required int triggerId,
- TaskConfiguration? task,
- DeviceConfiguration<
DeviceRegistration> ? targetDevice, - Control control = Control.Start,
Create a TaskControl.
taskName and destinationDeviceRoleName are taken from task and
targetDevice when given. control defaults to Control.Start.
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;
}
}