onPress property

VoidCallback? onPress
final

The callback that is called when the box is tapped or otherwise activated.

If this callback and onLongPress are null, then it will be disabled automatically.

Implementation

final VoidCallback? onPress;