DragGestureRecognizer constructor

DragGestureRecognizer({Object debugOwner, PointerDeviceKind kind, 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);