getMention method

String? getMention(
  1. String mention
)

returns the resolved mxid for a mention string, or null if none found

Implementation

String? getMention(String mention) => getParticipants()
    .firstWhereOrNull((u) => u.mentionFragments.contains(mention))
    ?.id;