dragSelectToggleable
A toggleable modifier that is only enabled when DragSelectState.inSelectionMode is true.
This is useful for enabling selection when the user is in selection mode.
Parameters
The DragSelectState that will be used to determine if the user is in selection mode and selection state of item.
The item that will be selected or deselected when the toggleable is toggled.
the MutableInteractionSource that will be used to emit PressInteraction.Press
when this toggleable is being pressed.
A toggleable modifier that is only enabled when inSelectionMode is true.
This is useful for enabling selection when the user is in selection mode.
Parameters
Whether the user is in selection mode.
Whether the item is selected.
the MutableInteractionSource that will be used to emit PressInteraction.Press
when this toggleable is being pressed.
Called when the toggleable is toggled.