onPress property

VoidCallback? onPress
final

A callback for when the widget is pressed.

The widget will be disabled if the following are null:

Implementation

final VoidCallback? onPress;