onPress property

VoidCallback? onPress
final

A callback for when the tile is pressed.

The tile is not hoverable if both onPress and onLongPress are null.

Implementation

final VoidCallback? onPress;