onPressed property

VoidCallback? onPressed
final

Null disables the button.

Implementation

final VoidCallback? onPressed;