Set a listener that is invoked when the sheet is dismissed (after negative or positive button click).