useStickyMode

fun Modifier.useStickyMode(controller: StickyItemController, isEnabled: Boolean = true): Modifier

A custom modifier function that enables "sticky mode" for a given view or composable. Sticky mode allows interactive gestures such as touch events to be handled by the StickyItemController.

Return

The modified modifier, either with or without touch event handling based on the isEnabled flag.

Parameters

controller

The controller responsible for handling touch events for sticky items.

isEnabled

A flag indicating whether sticky mode is enabled. Defaults to true.