onPress property

VoidCallback? onPress
final

A callback for when the button is pressed.

The button will be disabled if both onPress and onLongPress are null.

Implementation

final VoidCallback? onPress;