onClose property

VoidCallback? onClose
final

Called when the user taps the close button. If null, the button pops the route, and is hidden when there is no route to go back to.

Implementation

final VoidCallback? onClose;