onPress property

VoidCallback? onPress
final

A callback for when the item is pressed.

The item is not interactable if the following are all null:

Implementation

final VoidCallback? onPress;