onPressed property

VoidCallback? onPressed
final

Chooses it; null disables it.

Implementation

final VoidCallback? onPressed;