onLongPress method

GestureDetector onLongPress(
  1. void onLongPress()?
)

Returns a new GestureDetector widget with the given onLongPress callback.

Implementation

GestureDetector onLongPress(void Function()? onLongPress) {
  return GestureDetector(onLongPress: onLongPress, child: this);
}