linkType method

ContactLinkType? linkType(
  1. IRef subject
)

Implementation

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