rememberDialogState
returns a DialogStateWithData object holding all necessary states for the dialog
Consider using rememberDialogState(showing: Boolean, ...) if you do not need any data for this dialog
Parameters
the initial data of this state (should nearly always be null which means that the dialog is not visible initially)
define if the positive button should be enabled initially or not
define if the negative button should be enabled initially or not
define if the dialog can be initially dismissed or not
define if the dialog can be initially swiped away or not
returns a DialogStateNoData object holding all necessary states for the dialog
Consider using rememberDialogState with the data field overload if you do need some data inside the dialog if it is shown
Parameters
the initial visibility state
define if the positive button should be enabled initially or not
define if the negative button should be enabled initially or not
define if the dialog can be initially dismissed or not
define if the dialog can be initially swiped away or not