onDismissed property

VoidCallback? onDismissed
final

Callback when the bottom sheet is dismissed.

This is only called when the user closes the sheet by tapping the close button.

Defaults to

Navigator.of(context).pop();

Implementation

final VoidCallback? onDismissed;