onPressed property

VoidCallback? onPressed
final

A callback that can be optionally defined and called by the user before popping when the button is tapped.

Implementation

final VoidCallback? onPressed;