DragGestureRecognizer constructor

DragGestureRecognizer(
  1. {Object debugOwner,
  2. PointerDeviceKind kind,
  3. DragStartBehavior dragStartBehavior: DragStartBehavior.start}
)

Initialize the object.

dragStartBehavior must not be null.

It's possible to limit this recognizer to a specific PointerDeviceKind by providing the optional kind argument. If kind is null, the recognizer will accept pointer events from all device kinds.

Implementation

DragGestureRecognizer({
  Object debugOwner,
  PointerDeviceKind kind,
  this.dragStartBehavior = DragStartBehavior.start,
}) : assert(dragStartBehavior != null),
     super(debugOwner: debugOwner, kind: kind);