onClose property

VoidCallback? onClose
final

Optional onClose callback. If set, a "close" IconButton will appear at the top right of the widget. The callback function is called when the "close" button is tapped.

Implementation

final VoidCallback? onClose;