rememberScrollFieldState
Source set: Common
@ExperimentalMaterial3ExpressiveApi
@Composable
fun rememberScrollFieldState(itemCount: Int, index: Int = 0): ScrollFieldState
Creates and remembers a ScrollFieldState to be used with a ScrollField.
Parameters
| itemCount | the total number of unique items to be displayed in the scrollable wheel. |
| index | the initial selected index of the scroll field. |
Returns
| a ScrollFieldState that can be used to control or observe the scroll field. |