onPressed property

VoidCallback? onPressed
final

Called when the item is tapped. Null disables it.

Implementation

final VoidCallback? onPressed;