onPress property

VoidCallback? onPress
final

The callback function triggered when the button is pressed.

Implementation

final VoidCallback? onPress;