AntdCheckList class
@t 可勾选列表 @g 信息录入 @o 60 @d 列表的勾选操作。 @u 在一组列表项中选择一个或多个。
- Inheritance
Constructors
-
AntdCheckList.new({Key? key, AntdCheckListStyle? style, AntdStyleBuilder<
AntdCheckListStyle, AntdCheckList> ? styleBuilder, AntdCheckListController? controller, required List<AntdCheckItem> items, AntdScrollItemBuilder<AntdCheckItem, AntdCheckListController> ? itemBuilder, double? edgeThreshold, AntdOnScrollEdge? onEdgeReached, bool virtual = false, AntdScrollItemFit fit = AntdScrollItemFit.child, bool? shrinkWrap = true, bool? disable, AntdCheckListChange? onChange, Set<String> ? values, AntdHapticFeedback? hapticFeedback = AntdHapticFeedback.light}) -
const
Properties
- alignment → AntdEdge?
-
根据方向自动优化视图边界
finalinherited
- cacheExtent → double
-
预渲染区域大小
finalinherited
- cacheExtentStyle → CacheExtentStyle
-
预渲染区域计算方式
finalinherited
- controller → AntdCheckListController?
-
控制器
finalinherited
- disable → bool?
-
禁用
final
- dragStartBehavior → DragStartBehavior
-
拖动开始行为
finalinherited
- edgeThreshold → double?
-
触边阈值 (0-1表示百分比)
finalinherited
- fit → AntdScrollItemFit
-
自动适配策略
finalinherited
-
尾部的sliver
finalinherited
- gridDelegate → SliverGridDelegate?
-
宫格排列
finalinherited
- hapticFeedback → AntdHapticFeedback?
-
开启反馈
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ List<
Widget> ? -
头部的sliver
finalinherited
-
itemBuilder
→ AntdScrollItemBuilder<
AntdCheckItem, AntdCheckListController> ? -
数据构造器
finalinherited
-
items
→ List<
AntdCheckItem> -
滚动的数据
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onChange → AntdCheckListChange?
-
选项改变时触发
final
- onEdgeReached → AntdOnScrollEdge?
-
当触碰到边界时的回调
finalinherited
-
onItemPosition
→ AntdItemPositionListener<
AntdCheckItem> ? -
item变更事件
finalinherited
- physics → ScrollPhysics?
-
滚动物理效果
finalinherited
- reversed → bool
-
是否反向滚动
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollBehavior → ScrollBehavior?
-
滚动行为
finalinherited
- shrinkWrap → bool?
-
自动扩展高度
finalinherited
-
slivers
→ List<
Widget> ? -
子组件
finalinherited
- style → AntdCheckListStyle?
-
样式
finalinherited
-
styleBuilder
→ AntdStyleBuilder<
AntdCheckListStyle, AntdCheckList> ? -
动态样式
finalinherited
- throttle → Duration?
-
滚动事件节流时长
finalinherited
-
values
→ Set<
String> ? -
默认选中的值
final
- vertical → bool
-
滚动方向
finalinherited
- viewportOffset → double?
-
偏移位置
finalinherited
- virtual → bool
-
启动虚拟滚动
finalinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
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
-
getDefaultStyle(
BuildContext context, AntdTheme theme, AntdMapToken token) → AntdCheckListStyle -
override
-
getFinalStyle(
BuildContext context, AntdCheckListStyle style, AntdMapToken token) → AntdCheckListStyle -
inherited
-
getInputStyle(
BuildContext context) → AntdCheckListStyle? -
inherited
-
getStyle(
BuildContext context) → AntdCheckListStyle -
inherited
-
getStyleBuilder(
BuildContext context) → AntdStyleBuilder< AntdCheckListStyle, AntdCheckList> ? -
inherited
-
getThemeStyle(
BuildContext context, AntdTheme theme) → AntdStyleBuilder< AntdCheckListStyle, AntdCheckList> ? -
override
-
getWidget(
BuildContext context) → AntdCheckList -
override
-
margeStyle(
AntdCheckListStyle defaultStyle, AntdCheckListStyle? style) → AntdCheckListStyle -
override
-
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