onPressed property
final
Callback, called when this button is pressed.
Invokes Navigator.maybePop, if not specified.
Implementation
final void Function()? onPressed;
Callback, called when this button is pressed.
Invokes Navigator.maybePop, if not specified.
final void Function()? onPressed;