TriggeredTask constructor Null safety

TriggeredTask(
  1. int triggerId,
  2. [TaskDescriptor? task,
  3. DeviceDescriptor? targetDevice]
)

Implementation

TriggeredTask(
  this.triggerId, [
  this.task,
  this.targetDevice,
]) : super() {
  if (task != null) taskName = task!.name;
  if (targetDevice != null) targetDeviceRoleName = targetDevice!.roleName;
}