CheckButton class

Inheritance

Constructors

CheckButton({Key? key, required String text, double textSize = 12, Color textColor = const Color(0xff333333), Color selectIconColor = const Color(0xffEEEBD7), Color unSelectIconColor = const Color(0xffEEEBD7), double iconSize = 20, OnCheckedCall? checkedCall, EdgeInsetsGeometry textPadding = const EdgeInsets.only(left: 6), IconData checkIcon = Icons.check_box_outlined, IconData uncheckIcon = Icons.check_box_outline_blank, dynamic tag, bool check = false, int? position, OnBuildCall? buildCall, bool allowReverseSelection = true, bool isTile = false})

Properties

allowReverseSelection → bool
是否允许反选
final
buildCall → OnBuildCall?
组件构建回调
final
check → bool
默认是否被选中
final
checkedCall → OnCheckedCall?
选择项事件
final
checkIcon → IconData
选中图标视图
final
hashCode → int
The hash code for this object.
no setterinherited
iconSize → double
图标大小
final
isTile → bool
是否填充容器
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
position → int?
组件在父容器中的索引(可选)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectIconColor → Color
选择图标颜色
final
tag → dynamic
标签数据
final
text → String
文本
final
textColor → Color
文本颜色
final
textPadding → EdgeInsetsGeometry
文本内边距
final
textSize → double
文本大小
final
uncheckIcon → IconData
未选中图标视图
final
unSelectIconColor → Color
未选择图标颜色
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → CheckButtonState
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, 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