Looking over the docs, I can't see how to tell when the bottom sheet is dismissed. I'm trying to take the React approach where the visibility state is managed in my component state, but I'm not sure how I'm supposed to update that visibility state to false when the user clicks the background to dismiss the bottom sheet without making a selection, and onSelection doesn't look like it gets called in that case.
How can I update my component state when the bottom sheet is dismissed?
Looking over the docs, I can't see how to tell when the bottom sheet is dismissed. I'm trying to take the React approach where the visibility state is managed in my component state, but I'm not sure how I'm supposed to update that visibility state to false when the user clicks the background to dismiss the bottom sheet without making a selection, and
onSelection
doesn't look like it gets called in that case.How can I update my component state when the bottom sheet is dismissed?