onLongPress method
      
Widget
onLongPress(
    
- GestureTapCallback? onLongPress, {
- Key? key,
- HitTestBehavior? behavior,
- bool excludeFromSemantics = false,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
长按手势
Implementation
Widget onLongPress(
  GestureTapCallback? onLongPress, {
  Key? key,
  HitTestBehavior? behavior,
  bool excludeFromSemantics = false,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
}) =>
    GestureDetector(
      key: key,
      onLongPress: onLongPress,
      behavior: behavior ?? HitTestBehavior.opaque,
      excludeFromSemantics: excludeFromSemantics,
      dragStartBehavior: dragStartBehavior,
      child: this,
    );