AntdSwitchStyle class

开关组件的基础样式(包含所有状态) @l AntdSwitch

Inheritance
Available extensions

Constructors

AntdSwitchStyle.new({bool inherit = true, AntdBoxStyle? bodyStyle, AntdBoxStyle? trackStyle, AntdBoxStyle? activeTrackStyle, AntdBoxStyle? thumbStyle, AntdBoxStyle? activeThumbStyle, AntdBoxStyle? contentStyle, AntdBoxStyle? activeContentStyle, Widget? content, Widget? activeContent})
const

Properties

activeContent Widget?
未选中时的内容
final
activeContentStyle AntdBoxStyle?
开关内部子内容样式(如文字/图标)
final
activeThumbStyle AntdBoxStyle?
激活后开关手柄样式
final
activeTrackStyle AntdBoxStyle?
激活后开关轨道样式
final
bodyStyle AntdBoxStyle?
主体样式,可以开启切换时震动反馈
final
content Widget?
选中时的内容
final
contentStyle AntdBoxStyle?
开关内部子内容样式(如文字/图标)
final
hashCode int
The hash code for this object.
no setterinherited
inherit bool
是否继承样式,如果为false则不会向上合并其他的样式
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbStyle AntdBoxStyle?
开关手柄样式
final
trackStyle AntdBoxStyle?
开关轨道样式
final

Methods

copyFrom(covariant AntdSwitchStyle? style) AntdSwitchStyle
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