title method
Implementation
String title(IRef contact) {
final linkType = debtor.linkType(contact);
String title = "";
switch (linkType) {
case ContactLinkType.contact:
title += "Owes you ";
break;
case ContactLinkType.user:
title += "Pay ";
break;
default:
title += "Owed ";
break;
}
if (this.amount != null) {
title += "\$${this.amount!.toStringAsFixed(2)} ";
} else {
title += "money";
}
return title;
}