DialogInteractionSource
class DialogInteractionSource
an interaction source for button states and option state
Parameters
buttonPositiveEnabled
the positive button is only enabled if this state is true
buttonNegativeEnabled
the negative button is only enabled if this state is true
dismissAllowed
the dialog can only be dismissed if this state is true
swipeAllowed
the dialog can only be swiped away if this state is true