StyleMarkup class
文本样式的聚合标签
- Inheritance
-
- Object
- HyperMarkup
- TagMarkup
- StyleMarkup
- Implementers
Constructors
-
StyleMarkup.new({String tag = 'style', Set<
String> ? alias, ColorMapper? colorMapper, FontWeight? weight, FontStyle? fontStyle, TextDecoration? decoration, TextDecorationStyle? decorationStyle, Color? decorationColor, double? decorationThickness}) -
const
Properties
-
alias
→ Set<
String> ? -
标签别名
finalinherited
- colorMapper → ColorMapper?
-
字符串到Color的映射
final
- decoration → TextDecoration?
-
final
- decorationColor → Color?
-
final
- decorationStyle → TextDecorationStyle?
-
final
- decorationThickness → double?
-
final
- fontStyle → FontStyle?
-
final
- 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?
-
final
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? -
optColor(
MarkupContext context, {bool enableTagAttr = true}) → Color? -
optFontFamily(
MarkupContext context, {bool enableTagAttr = true}) → String? -
optFontSize(
MarkupContext context, {bool enableTagAttr = true}) → double? -
optFontStyle(
MarkupContext ctx, {bool enableTagAttr = true}) → FontStyle? -
optFontWeight(
MarkupContext ctx, {bool enableTagAttr = true}) → FontWeight? -
optTextDecoration(
MarkupContext ctx, {String attrPrefix = '', bool enableTagAttr = true}) → FontTextDecoration? -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited