PrimaryPointerGestureRecognizer constructor

PrimaryPointerGestureRecognizer({Duration deadline, double preAcceptSlopTolerance: kTouchSlop, double postAcceptSlopTolerance: kTouchSlop, Object debugOwner, PointerDeviceKind kind })

Initializes the deadline field during construction of subclasses.

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.


  this.preAcceptSlopTolerance = kTouchSlop,
  this.postAcceptSlopTolerance = kTouchSlop,
  Object debugOwner,
  PointerDeviceKind kind,
}) : assert(
       preAcceptSlopTolerance == null || preAcceptSlopTolerance >= 0,
       'The preAcceptSlopTolerance must be positive or null',
       postAcceptSlopTolerance == null || postAcceptSlopTolerance >= 0,
       'The postAcceptSlopTolerance must be positive or null',
     super(debugOwner: debugOwner, kind: kind);