LongPressDraggable<T> constructor

const LongPressDraggable<T>(
  1. {Key key,
  2. @required Widget child,
  3. @required Widget feedback,
  4. T data,
  5. Axis axis,
  6. Widget childWhenDragging,
  7. Offset feedbackOffset: Offset.zero,
  8. DragAnchor dragAnchor: DragAnchor.child,
  9. int maxSimultaneousDrags,
  10. VoidCallback onDragStarted,
  11. DraggableCanceledCallback onDraggableCanceled,
  12. DragEndCallback onDragEnd,
  13. VoidCallback onDragCompleted,
  14. bool hapticFeedbackOnStart: true,
  15. bool ignoringFeedbackSemantics: true}
)

Creates a widget that can be dragged starting from long press.

The child and feedback arguments must not be null. If maxSimultaneousDrags is non-null, it must be non-negative.

Implementation

const LongPressDraggable({
  Key key,
  @required Widget child,
  @required Widget feedback,
  T data,
  Axis axis,
  Widget childWhenDragging,
  Offset feedbackOffset = Offset.zero,
  DragAnchor dragAnchor = DragAnchor.child,
  int maxSimultaneousDrags,
  VoidCallback onDragStarted,
  DraggableCanceledCallback onDraggableCanceled,
  DragEndCallback onDragEnd,
  VoidCallback onDragCompleted,
  this.hapticFeedbackOnStart = true,
  bool ignoringFeedbackSemantics = true,
}) : super(
  key: key,
  child: child,
  feedback: feedback,
  data: data,
  axis: axis,
  childWhenDragging: childWhenDragging,
  feedbackOffset: feedbackOffset,
  dragAnchor: dragAnchor,
  maxSimultaneousDrags: maxSimultaneousDrags,
  onDragStarted: onDragStarted,
  onDraggableCanceled: onDraggableCanceled,
  onDragEnd: onDragEnd,
  onDragCompleted: onDragCompleted,
  ignoringFeedbackSemantics: ignoringFeedbackSemantics,
);