onLongPress property

VoidCallback? onLongPress
final

A callback for when the button is long pressed.

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

Implementation

final VoidCallback? onLongPress;