onPressed property

VoidCallback? onPressed
final

An optional callback that is called when the button is pressed.

By default, Navigator.maybePop is called.

Implementation

final VoidCallback? onPressed;