getSearchText method

String getSearchText()

Get the current search string for the mention (this is the mention minus the starting character. i.e. @Amber -> Amber)

Implementation

String getSearchText() {
  if (isMentioning()) {
    return text.substring(
      _mentionStartingIndex! + 1,
      _mentionStartingIndex! + _mentionLength!,
    );
  }

  return '';
}