onLongPress property

VoidCallback? onLongPress
final

The callback that is called when the button is long-pressed.

If this callback and onPressed are null, then the button will be disabled.

See also:

  • enabled, which is true if the button is enabled.

Implementation

final VoidCallback? onLongPress;