onPressed property

VoidCallback? onPressed
final

The function to be called whenever the user presses this button.

Calls Navigator.maybePop by default.

Implementation

final VoidCallback? onPressed;