of static method

Note of({
  1. IReliveItContact? creator,
  2. required DateTime? dateCreated,
  3. ITaskFactForMModel? assistedTask,
  4. required String? noteTitle,
  5. String? notes,
  6. List<IImageContent>? photos,
  7. DateTime? noteDate,
  8. required MKey? contactKey,
})

Implementation

static Note of({
  IReliveItContact? creator,
  required DateTime? dateCreated,
  ITaskFactForMModel? assistedTask,
  required String? noteTitle,
  String? notes,
  List<IImageContent>? photos,
  DateTime? noteDate,
  required MKey? contactKey
  }) {
  final self = Note(<String, dynamic>{}, mtype: NoteRef, update: true);
  if (creator != null) self.creator = creator;
  if (dateCreated != null) self.dateCreated = dateCreated;
  if (assistedTask != null) self.assistedTask = assistedTask;
  if (noteTitle != null) self.noteTitle = noteTitle;
  if (notes != null) self.notes = notes;
  if (photos != null) self.photos = photos;
  if (noteDate != null) self.noteDate = noteDate;
  if (contactKey != null) self.contactKey = contactKey;
  return self;
}