LinkMarkup class
定义链接标记
有效的标签名称:a
参数:
- href
tap|long-press
- cursor:
click|defer
- alignment: PlaceholderAlignment
- baseline:
alphabetic|ideographic
参考TextBaseline - your custom attr
示例:<a href="https://example.com" foo=bar>go</a>
- Inheritance
-
- Object
- HyperMarkup
- TagMarkup
- LinkMarkup
Constructors
- LinkMarkup.new({TextStyle? style, PlaceholderAlignment? alignment, TextBaseline? baseline})
-
const
Properties
-
alias
→ Set<
String> ? -
标签别名
finalinherited
- alignment → PlaceholderAlignment?
-
How the placeholder aligns vertically with the text.
final
- baseline → TextBaseline?
-
The TextBaseline to align against when using
ui.PlaceholderAlignment.baseline
,ui.PlaceholderAlignment.aboveBaseline
, andui.PlaceholderAlignment.belowBaseline
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TextStyle?
-
默认的链接文本样式
final
- tag → String
-
标签名称
finalinherited
-
支持的标签集合
no setterinherited
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 -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited