DialogEvent
the sealed event for all dialog events (button click and dismissal)
DialogEvent.dismissed the information if this event will dismiss the dialog or not DialogEvent.type a convenient enum to determine, if this is the event is a positive button, negative button or a dismissal