SelectableItemsX<T> extension

on

Properties

length int
returns the length of the items
no setter
selected → T?
the currently selected item
no setter

Methods

add(T item) SelectableItems<T>
adds an item to the items list
deleteAt(int index) SelectableItems<T>
deletes the item at the index if index is in range, else do nothing
get(int index) → T
gets the item at index
getIsSelectable(int index) bool
if the item at index is selectable
insert(T item, {int? atIndex}) SelectableItems<T>
inserts the item at the atIndex if atIndex is given and index is valid
modifyAt(int index, T newValue) SelectableItems<T>
modifies the item at the index to the newValue
select(int index) SelectableItems<T>
selects the item at index