of static method

AssistedTask of({
  1. IReliveItContact? creator,
  2. required DateTime? dateCreated,
  3. ITaskFactForMModel? assistedTask,
  4. DateTime? displayDate,
  5. DateTime? dueDate,
  6. DateTime? completionDate,
  7. String? taskTitle,
  8. String? taskDescription,
  9. ITimeSensitivity? timeSensitivity,
  10. bool? isCancelled = false,
  11. ITaskDueConfig? dueConfig,
  12. TimeSpan? displayOffset,
  13. bool? isAlert = false,
  14. bool? isSkippable = false,
  15. MModel? state,
  16. MModel? result,
  17. MOperationRef? operationRef,
  18. bool? isUnread = false,
  19. bool? isNotified = false,
  20. MModel? setup,
  21. MKey? contactKey,
  22. MKey? assigneeKey,
  23. String? frameId,
  24. String? linkedFactId,
  25. IRecurrence? recurrence,
})

Implementation

static AssistedTask of(
    {IReliveItContact? creator,
    required DateTime? dateCreated,
    ITaskFactForMModel? assistedTask,
    DateTime? displayDate,
    DateTime? dueDate,
    DateTime? completionDate,
    String? taskTitle,
    String? taskDescription,
    ITimeSensitivity? timeSensitivity,
    bool? isCancelled = false,
    ITaskDueConfig? dueConfig,
    TimeSpan? displayOffset,
    bool? isAlert = false,
    bool? isSkippable = false,
    MModel? state,
    MModel? result,
    MOperationRef? operationRef,
    bool? isUnread = false,
    bool? isNotified = false,
    MModel? setup,
    MKey? contactKey,
    MKey? assigneeKey,
    String? frameId,
    String? linkedFactId,
    IRecurrence? recurrence}) {
  final self =
      AssistedTask(<String, dynamic>{}, mtype: AssistedTaskRef, update: true);
  if (creator != null) self.creator = creator;
  if (dateCreated != null) self.dateCreated = dateCreated;
  if (assistedTask != null) self.assistedTask = assistedTask;
  if (displayDate != null) self.displayDate = displayDate;
  if (dueDate != null) self.dueDate = dueDate;
  if (completionDate != null) self.completionDate = completionDate;
  if (taskTitle != null) self.taskTitle = taskTitle;
  if (taskDescription != null) self.taskDescription = taskDescription;
  if (timeSensitivity != null) self.timeSensitivity = timeSensitivity;
  if (isCancelled != null) self.isCancelled = isCancelled;
  if (dueConfig != null) self.dueConfig = dueConfig;
  if (displayOffset != null) self.displayOffset = displayOffset;
  if (isAlert != null) self.isAlert = isAlert;
  if (isSkippable != null) self.isSkippable = isSkippable;
  if (state != null) self.state = state;
  if (result != null) self.result = result;
  if (operationRef != null) self.operationRef = operationRef;
  if (isUnread != null) self.isUnread = isUnread;
  if (isNotified != null) self.isNotified = isNotified;
  if (setup != null) self.setup = setup;
  if (contactKey != null) self.contactKey = contactKey;
  if (assigneeKey != null) self.assigneeKey = assigneeKey;
  if (frameId != null) self.frameId = frameId;
  if (linkedFactId != null) self.linkedFactId = linkedFactId;
  if (recurrence != null) self.recurrence = recurrence;
  return self;
}