AntdIconStyle class

@t 图标样式 @d 定义图标的所有可定制样式属性 @l AntdIcon

Inheritance
Available extensions

Constructors

AntdIconStyle({bool inherit = true, double? size, Color? color, double? fill, double? weight, double? grade, double? opticalSize, List<Shadow>? shadows, String? semanticLabel, TextDirection? textDirection, bool? applyTextScaling, BlendMode? blendMode, AntdBoxStyle? bodyStyle, AntdFlexStyle? flexStyle, AntdBoxStyle? childStyle})
const

Properties

applyTextScaling → bool?
是否应用文本缩放
final
blendMode → BlendMode?
颜色混合模式
final
bodyStyle → AntdBoxStyle?
最外层样式
final
childStyle → AntdBoxStyle?
childStyle
final
color → Color?
图标颜色
final
fill → double?
图标填充度(0.0-1.0)
final
flexStyle → AntdFlexStyle?
布局样式
final
grade → double?
图标等级(影响细节表现)
final
hashCode → int
The hash code for this object.
no setterinherited
inherit → bool
是否继承样式,如果为false则不会向上合并其他的样式
finalinherited
opticalSize → double?
视觉尺寸(影响整体比例)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
无障碍语义标签
final
shadows → List<Shadow>?
图标阴影效果
final
size → double?
图标尺寸
final
textDirection → TextDirection?
文本方向(LTR/RTL)
final
weight → double?
图标粗细(100-700)
final

Methods

copyFrom(covariant AntdIconStyle? style) → AntdIconStyle
override
merge(T? other) → T?

Available on T?, provided by the StyleExtensions extension

mergeActive(T? defaultStyle, T? tdStyle, T? tdaStyle) → T?

Available on T?, provided by the StyleExtensions extension

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