BackdropScaffoldState
Function
Common
fun BackdropScaffoldState(
initialValue: BackdropValue,
density: Density,
animationSpec: AnimationSpec<Float> = BackdropScaffoldDefaults.AnimationSpec,
confirmValueChange: (BackdropValue) -> Boolean = { true },
snackbarHostState: SnackbarHostState = SnackbarHostState(),
) =
BackdropScaffoldState(initialValue, animationSpec, confirmValueChange, snackbarHostState).also {
it.density = density
}
State of the persistent bottom sheet in BackdropScaffold
.
Parameters
initialValue | The initial value of the state. |
density | The density that this state can use to convert values to and from dp. |
animationSpec | The default animation that will be used to animate to a new state. |
confirmValueChange | Optional callback invoked to confirm or veto a pending state change. |
snackbarHostState | The SnackbarHostState used to show snackbars inside the scaffold. |