Drag Select State
A state object that can be hoisted to control and observe selected items.
In most cases, this will be created via rememberDragSelectState.
Parameters
Item
The type of the items in the list.
grid State
The LazyGridState that will be used to control the items in the grid.
initial Index
The initial index of the item that was long pressed.
initial Selection
The initial selection of items.
constructor(initialSelection: List<Item>, gridState: LazyGridState, compareSelector: (Item) -> Any, dragState: DragState)
Parameters
Item
The type of the items in the list.
initial Selection
The initial selection of items.
grid State
The LazyGridState that will be used to control the items in the grid.
drag State
The current drag state.
compare Selector
A factory for selecting a property of Item to compare.