SelectableListX<T extends Selectable> extension

on

Properties

isAnySelected bool

Available on List<T>, provided by the SelectableListX extension

是否有选中的元素
no setter
isEverySelected bool

Available on List<T>, provided by the SelectableListX extension

是否所有元素被选中
no setter
selected → T?

Available on List<T>, provided by the SelectableListX extension

获取被选中的元素
no setter
selectedCount int

Available on List<T>, provided by the SelectableListX extension

选中元素的个数
no setter
selectedIndex int

Available on List<T>, provided by the SelectableListX extension

被选中的元素的索引
no setter
selectedIndexes List<int>

Available on List<T>, provided by the SelectableListX extension

被选中的元素的索引列表
no setter

Methods

reset() → void

Available on List<T>, provided by the SelectableListX extension

整个列表重置
select(T? target) → void

Available on List<T>, provided by the SelectableListX extension

选中指定元素
selectAtIndex(int index) List<T>

Available on List<T>, provided by the SelectableListX extension

选择第index个元素
selectFirst() List<T>

Available on List<T>, provided by the SelectableListX extension

选择第一个元素
selectWhere(bool test(T item)) → void

Available on List<T>, provided by the SelectableListX extension

选中指定条件的元素
whereSelected() List<T>

Available on List<T>, provided by the SelectableListX extension