onClose property

VoidCallback? onClose
final

A callback invoked when the close button is clicked. If null, the close button is not shown.

Implementation

final VoidCallback? onClose;