onDismiss property

(Future<bool> Function()?) onDismiss
final

Called whenever the user taps outside the overlay area. This function needs to return a bool, either from an async scope or as a Future.

If the function returns false, nothing happens. If it returns true, all of the current steps are dismissed.

Implementation

final Future<bool> Function()? onDismiss;