onPress property
A callback for when the button is pressed.
The action will be disabled if both onPress and onLongPress are null.
Implementation
final VoidCallback? onPress;
A callback for when the button is pressed.
The action will be disabled if both onPress and onLongPress are null.
final VoidCallback? onPress;