onClose property

(void Function()?) onClose
final

Called when the close button is pressed. If this is null, there will be no close button

Implementation

final void Function()? onClose;