title method
String
title(
- IRef contact
)
override
Implementation
String title(IRef contact) {
// Determining if the payor if you or someone else
final linkType = payor.linkType(contact);
String title = "";
switch (linkType) {
// You are the one who was PAID
case ContactLinkType.contact:
title += "Paid You ";
break;
// You are the one who PAID
case ContactLinkType.user:
title += "You Paid ";
break;
default:
title += "Paid ";
break;
}
if (this.amount != null) {
title += "\$${this.amount!.toStringAsFixed(2)} ";
} else {
title += "money";
}
return title;
}