onDismiss property

VoidCallback? onDismiss
final

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.

Implementation

final VoidCallback? onDismiss;