onPressed property

VoidCallback? onPressed
final

Called on tap; null disables the button.

Implementation

final VoidCallback? onPressed;