onPress property

VoidCallback onPress
final

Called when the gesture is accepted and the press is confirmed.

Implementation

final VoidCallback onPress;