RadioGroup class

Inheritance

Constructors

RadioGroup({Key? key, required List<RadioEntry> items, RadioArrange orientation = RadioArrange.horizontal, IconData checkIcon = Icons.radio_button_on, IconData uncheckIcon = Icons.radio_button_off, Color selectIconColor = const Color(0xffEEEBD7), Color unSelectIconColor = const Color(0xffEEEBD7), double iconSize = 20, Color textColor = const Color(0xff333333), double textSize = 12, EdgeInsetsGeometry textPadding = const EdgeInsets.only(left: 6), EdgeInsetsGeometry itemPadding = EdgeInsets.zero, OnRadioChangeCall? changeCall, AlignStyle style = AlignStyle.wrap, double? width, String? tag, bool allowReverseSelection = true, bool isTile = false})
const

Properties

allowReverseSelection bool
是否允许反选
final
changeCall OnRadioChangeCall?
radio选择事件回调
final
checkIcon IconData
radio check icon
final
hashCode int
The hash code for this object.
no setterinherited
iconSize double
图标大小
final
isTile bool
是否填充容器
final
itemPadding EdgeInsetsGeometry
选项内边距
final
items List<RadioEntry>
radio list
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
orientation RadioArrange
排列方向
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectIconColor Color
选择图标颜色
final
style AlignStyle
对齐方式
final
tag String?
默认被选中项tag
final
textColor Color
文本颜色
final
textPadding EdgeInsetsGeometry
文本内边距
final
textSize double
文本大小
final
uncheckIcon IconData
radio uncheck icon
final
unSelectIconColor Color
未选择图标颜色
final
width double?
RadioGroup组件宽度 当style=AlignStyle.autoFill时该值必填
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _RadioGroupState
Creates the mutable state for this widget at a given location in the tree.
override
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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}) 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