onClose property

VoidCallback? onClose
final

Called by the close button. Without it there is none, and the result stays on screen.

Implementation

final VoidCallback? onClose;