Convert class

用于将 HTML 标签转为 style

Constructors

Convert(String cssContent, {HyperLinkCallback? linkCallBack, TextStyle? defaultStyle})
cssContent 带有html 标签文本 linkCallBack 超链接的点击回调 defaultStyle 外部传入的默认文本样式

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack List<_Tag>
标签对应的style
getter/setter pair

Methods

convert([Color? linkColor]) List<TextSpan>
转换的思路:将 开始标签 的属性转为 合适的style, 并将其存入集合中 a开始标签支持的属性:href 文本标签 去获取style集合的最后一个元素 并应用style样式 结束标签 则将集合的最后一个元素删除
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