onPressed property
A callback that can be optionally defined and called by the user before popping when the button is tapped.
Implementation
final VoidCallback? onPressed;
A callback that can be optionally defined and called by the user before popping when the button is tapped.
final VoidCallback? onPressed;