onDismissRequested property

VoidCallback? onDismissRequested
getter/setter pair

The declarative close route: when set, a scrim tap or Esc does not close the flight itself but asks the state owner - who flips state, and close() arrives from above. State down, events up.

Implementation

VoidCallback? onDismissRequested;