text/mention_text_editing_controller library

Classes

MentionObject
Mention object that store the id, display name and avatar url of the mention. You can inherit from this to add your own custom data, should you need to
MentionSuggestion
Object that holds the syntax and search string for a suggestion.
MentionSyntax
Mention syntax for determining when to start mentioning and parsing to and from markup text. Final markup text would be: Prefix -> StartingCharacter -> Id of mention -> Suffix
MentionTextEditingController
Text editing controller that can parse mentions

Constants

DIFF_DELETE → const int
DIFF_EQUAL → const int
DIFF_INSERT → const int

Typedefs

IdToMentionCallback = Future<MentionObject?> Function(BuildContext context, String mentionId)
Typedef for id to mention callback.
SuggestionCallback = void Function(MentionSuggestion suggestion)
Typedef for suggestion callback.