onPressed property
An optional callback that is called when the button is pressed.
By default, Navigator.maybePop is called.
Implementation
final VoidCallback? onPressed;
An optional callback that is called when the button is pressed.
By default, Navigator.maybePop is called.
final VoidCallback? onPressed;