MentionMarkup class
提及用户标记
- Inheritance
-
- Object
- HyperMarkup
- DefaultPatternMarkup
- MentionMarkup
Constructors
- MentionMarkup(TextStyle style, {String pattern = mentionPattern, String tag = 'mention', int? startCharacter = Charcode.at, bool enableLongPress = false, bool enableTap = true, MouseCursor? cursor, String? tooltip, PlaceholderAlignment? alignment, TextBaseline? baseline})
Properties
- alignment → PlaceholderAlignment?
-
How the placeholder aligns vertically with the text.
finalinherited
- baseline → TextBaseline?
-
The TextBaseline to align against when using
ui.PlaceholderAlignment.baseline,ui.PlaceholderAlignment.aboveBaseline, andui.PlaceholderAlignment.belowBaseline.finalinherited - cursor → MouseCursor?
-
finalinherited
- enableLongPress → bool
-
finalinherited
- enableTap → bool
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- pattern → RegExp
-
匹配模式
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startCharacter → int?
-
起始字符
finalinherited
- style → TextStyle
-
finalinherited
-
支持的标签集合
finalinherited
- tooltip → String?
-
finalinherited
Methods
-
markup(
List< HypertextSpan> ? children, StartTagToken token, HypertextEventHandler? eventHandler, ColorMapper? colorMapper) → HypertextSpan -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onMarkup(
List< HypertextSpan> ? children, MarkupContext ctx) → HypertextSpan -
inherited
-
onMatch(
PatternParser parser, Match startMatch) → bool -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
tryMatch(
PatternParser parser, [int? startMatchPos]) → bool -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited