onClose property
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;
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.
final VoidCallback? onClose;