onClose property

VoidCallback? onClose
final

Callback function called when the close/back button is pressed.

If null, the close button will not be displayed.

Implementation

final VoidCallback? onClose;