onPress property

VoidCallback? onPress
final

Called when the item is pressed.

The method will run concurrently with animations if children is non-null.

Implementation

final VoidCallback? onPress;