Called when the barrier is being dismissed. Defaults to popping the current route from the ambient Navigator.
If onDismiss is null, tapping on the barrier will do nothing.
final VoidCallback? onDismiss;