onLongPress method

Widget onLongPress(
  1. void onLongPress()?
)

长按事件

Implementation

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