TextDecorationMarkup class
文本装饰
有效的Tag名称:text-decor
参数:
- decor:
none|del|underline|overline
参见TextDecoration - style:
solid|double|dotted|dashed|wavy
参见TextDecorationStyle - color:
colorName|hexColor
- thickness: double
示例:
<text-decor underline style=dotted>bar</text-decor>
<text-decor del color=red thickness=2>bar</text-decor>
- Inheritance
-
- Object
- HyperMarkup
- TagMarkup
- StyleMarkup
- TextDecorationMarkup
- Implementers
Constructors
-
TextDecorationMarkup.new({String tag = 'text-decor', Set<
String> ? alias, TextDecoration? decoration, TextDecorationStyle? decorationStyle, Color? decorationColor, double? decorationThickness}) -
const
Properties
-
alias
→ Set<
String> ? -
标签别名
finalinherited
- colorMapper → ColorMapper?
-
字符串到Color的映射
finalinherited
- decoration → TextDecoration?
-
finalinherited
- decorationColor → Color?
-
finalinherited
- decorationStyle → TextDecorationStyle?
-
finalinherited
- decorationThickness → double?
-
finalinherited
- fontStyle → FontStyle?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag → String
-
标签名称
finalinherited
-
支持的标签集合
no setterinherited
- weight → FontWeight?
-
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 -
override
-
optBgColor(
MarkupContext context, {bool enableTagAttr = true}) → Color? -
inherited
-
optColor(
MarkupContext context, {bool enableTagAttr = true}) → Color? -
inherited
-
optFontFamily(
MarkupContext context, {bool enableTagAttr = true}) → String? -
inherited
-
optFontSize(
MarkupContext context, {bool enableTagAttr = true}) → double? -
inherited
-
optFontStyle(
MarkupContext ctx, {bool enableTagAttr = true}) → FontStyle? -
inherited
-
optFontWeight(
MarkupContext ctx, {bool enableTagAttr = true}) → FontWeight? -
inherited
-
optTextDecoration(
MarkupContext ctx, {String attrPrefix = '', bool enableTagAttr = true}) → FontTextDecoration? -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited