MentionSyntax class

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

Constructors

MentionSyntax({required String startingCharacter, required String missingText, String prefix = '<###', String suffix = '###>', String pattern = '[a-zA-Z0-9]{1,}'})

Properties

hashCode int
The hash code for this object.
no setterinherited
missingText String
The display name to show when the mention with the specified id no longer exists
final
pattern String
The inner pattern that will be followed to find a mention
final
prefix String
The prefix to add to the final markup text per mention of this type
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startingCharacter String
The character the regex pattern starts with, used to more performance find sections in the text, needs to be a single character
final
suffix String
The suffix to add to the final markup text per mention of this type
final

Methods

getRegExp() RegExp
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited