onClose property

(void Function()?) onClose
final

Called when a user cicks the close button Add your own close logic is the default does not yeild good behaviour

Implementation

final void Function()? onClose;