title method

String title(
  1. IRef contact
)
override

Implementation

String title(IRef contact) {
  String title = "";
  if (this.endDate != null) {
    title += "Worked ";
  } else {
    title += "Works ";
  }
//    if (this.isCoworker == true) {
//      title += "with you ";
//    }
//    if (employer?.name != null) {
//      title += "at ${employer.name} ";
//    }
  if (this.company?.name?.isNotNullOrBlank == true) {
    title += "at ${company!.name} ";
  }
  if (position != null) {
    title += "as $position";
  }

  return title;
}