onLongPress method

Widget onLongPress(
  1. GestureTapCallback? onLongPress, {
  2. Key? key,
  3. HitTestBehavior? behavior,
  4. bool excludeFromSemantics = false,
  5. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
})

长按

Implementation

Widget onLongPress(
  GestureTapCallback? onLongPress, {
  Key? key,
  HitTestBehavior? behavior,
  bool excludeFromSemantics = false,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
}) =>
    gestures(
      key: key,
      onLongPress: onLongPress,
      behavior: behavior ?? HitTestBehavior.opaque,
      excludeFromSemantics: excludeFromSemantics,
      dragStartBehavior: dragStartBehavior,
    );