TopicMarkup class

话题标记

Inheritance

Constructors

TopicMarkup(TextStyle style, {String pattern = topicPattern, String tag = 'topic', int? startCharacter = Charcode.hash, 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, and ui.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
tags → List<String>
支持的标签集合
finalinherited
tooltip → String?
finalinherited

Methods

markup(List<HypertextSpan>? children, StartTagToken token, HypertextEventHandler? eventHandler, ColorMapper? colorMapper, StyleMapper? styleMapper) → 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