DialogStateWithData

constructor(visible: State<Boolean>, state: MutableState<T?>, interactionSource: MutableState<DialogInteractionSource>)

Parameters

visible

the visibility state of the dialog - must be derived from the state!

state

the state of the dialog - if not null, the dialog is visible, otherwise not

interactionSource

the DialogInteractionSource holding other states for this dialog