onClose property
final
An optional callback function that is called when the "close" button is tapped.
The callback should handle dismissing the containing widget or perform the necessary state changes to close the pop-up. If not provided, the close button will not be shown.
Implementation
final VoidCallback? onClose;