Checkable<E> mixin

Superclass constraints

Properties

bindEventListener OnEventListener<E>
OnEventListener总线绑定itemView
no setterinherited
checkedItems List<E?>
no setter
checkType CheckType
选中模式
getter/setter pair
gestureCallback GestureCallback?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
items List<E?>
获取不可变数据列表
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
数据长度
no setterinherited
state DataBuildState<StatefulWidget>?
getter/setter pairinherited

Methods

addItem(E item) → void
新增item
inherited
addItemClickListener(OnItemClickListener<E?> listener) → void
添加监听事件
inherited
addItemLongClickListener(OnItemLongClickListener<E?> listener) → void
inherited
addItems(List<E?> items) → void
新增数组items
inherited
addItemsClear(List<E?> items) → void
清除并新增
inherited
bindItemView(E? item, int position) Widget
inherited
buildItemView(E? item, int position) Widget
inherited
check({int? position, E? checkItem}) → void
选中
checked({int? position, E? checkItem}) bool
选中状态
checkRange([int start = 0, int end = 0]) → void
选中范围元素
clear() → void
清除列表
inherited
indexOfItem(E item) int
获取item数据对应首个下标
inherited
insert(int position, E item) → void
插入item到指定下标
inherited
item(int position) → E?
获取下标position数据项
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyDataSetChanged() → void
通知已注册的监听器数据集已更改
inherited
notifyItemChanged(int position) → void
通知指定下标的监听器数据集已更改
inherited
onInitItemView(E? item, int position) → void
inherited
onItemCheckedUpdate(E? item, int position, bool checked) Widget
可选项视图更新
onItemClickable(E? item, int position) bool
点击事件可拦截onItemClickListeners
inherited
onItemLongClickable(E? item, int position) bool
长按事件可拦截onItemLongClickListeners
inherited
onItemUpdate(E? item, int position) Widget
上层视图构建方法
override
onItemViewDispose(E? item, int position) → void
inherited
registerCallback(DataSetCallback onDataSetChanged) → void
注册数据变化监听器
inherited
remove(E item) → void
移除item
inherited
removeAt(int position) → void
移除下标position
inherited
removeCallback(DataSetCallback? onDataSetChanged) → void
移除数据变化监听器
inherited
removeItemClickListener(OnItemClickListener<E?> listener) → void
移除监听事件
inherited
removeItemLongClickListener(OnItemClickListener<E?> listener) → void
inherited
swap(int current, int next) → void
交换下标位置
inherited
toString() String
A string representation of this object.
inherited
uncheck({int? position, E? checkItem}) → void
取消选中
uncheckRange([int start = 0, int end = 0]) → void
取消范围元素

Operators

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