I have a showModalBottomSheet, and isDismissible is set to true, When I click outside the showModalBottomSheet I want to receive the callback for it.
in showModalBottomSheet I have hide button, and on click of hide button i'm doing Navigator.pop(context) to hide the dialog,
Tried whenComplete() & then() but i get callback for every dismiss even for Hide button click.
How do I do it?