GradientMarkup class
文本渐变标记
有效的Tag名称:gradient
参数:
- gradient:
none|linear|radial|sweep
参见Gradient - colors:
colorName|hexColor
- rotation: 角度值
- stops:
示例:
<gradient linear colors="red, blue" rotation=45>bar</gradient>
<gradient sweep colors="#FF0000, #0000FF" >bar</gradient>
- Inheritance
-
- Object
- HyperMarkup
- TagMarkup
- GradientMarkup
Constructors
- GradientMarkup.new({String tag = 'gradient', 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
- 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