linkType method
Implementation
ContactLinkType? linkType(IRef subject) {
if (isUserKey) return ContactLinkType.user;
if (this?.mxid == subject.id) return ContactLinkType.contact;
return this == null ? null : ContactLinkType.other;
}
ContactLinkType? linkType(IRef subject) {
if (isUserKey) return ContactLinkType.user;
if (this?.mxid == subject.id) return ContactLinkType.contact;
return this == null ? null : ContactLinkType.other;
}