AntdSelectorOption class

选择器选项数据类 @l AntdSelector

Inheritance

Constructors

AntdSelectorOption.new({Key? key, AntdSelectorOptionStyle? style, AntdStyleBuilder<AntdSelectorOptionStyle, AntdSelectorOption>? styleBuilder, Widget? description, bool disabled = false, bool check = false, required Widget label, String? value, ValueChanged<bool>? onChange, AntdHapticFeedback? hapticFeedback = AntdHapticFeedback.light})
const

Properties

check bool
是否选中该选项(默认false)
final
description Widget?
选项的描述信息组件(显示在label下方)
final
disabled bool
是否禁用该选项(默认false)
final
hapticFeedback AntdHapticFeedback?
开启反馈
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label Widget
选项的主标签组件
final
onChange ValueChanged<bool>?
更改事件
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style AntdSelectorOptionStyle?
样式
finalinherited
styleBuilder AntdStyleBuilder<AntdSelectorOptionStyle, AntdSelectorOption>?
动态样式
finalinherited
value String?
选项的唯一标识值
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
copyFrom(AntdSelectorOption? other) AntdSelectorOption
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
getDefaultStyle(BuildContext context, AntdTheme theme, AntdMapToken token) AntdSelectorOptionStyle
override
getFinalStyle(BuildContext context, AntdSelectorOptionStyle style, AntdMapToken token) AntdSelectorOptionStyle
inherited
getInputStyle(BuildContext context) AntdSelectorOptionStyle?
inherited
getStyle(BuildContext context) AntdSelectorOptionStyle
inherited
getStyleBuilder(BuildContext context) AntdStyleBuilder<AntdSelectorOptionStyle, AntdSelectorOption>?
inherited
getThemeStyle(BuildContext context, AntdTheme theme) AntdStyleBuilder<AntdSelectorOptionStyle, AntdSelectorOption>?
inherited
getWidget(BuildContext context) AntdSelectorOption
override
margeStyle(AntdSelectorOptionStyle defaultStyle, AntdSelectorOptionStyle? style) AntdSelectorOptionStyle
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(BuildContext context, AntdSelectorOptionStyle style) Widget
override
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited