PrimaryPointerGestureRecognizer constructor
- Duration? deadline,
- double? preAcceptSlopTolerance = kTouchSlop,
- double? postAcceptSlopTolerance = kTouchSlop,
- Object? debugOwner,
- Set<
PointerDeviceKind> ? supportedDevices, - AllowedButtonsFilter allowedButtonsFilter = _defaultButtonAcceptBehavior,
Initializes the deadline field during construction of subclasses.
It's possible to limit this recognizer to a specific set of PointerDeviceKinds by providing the optional supportedDevices argument. If supportedDevices is null, the recognizer will accept pointer events from all device kinds.
Implementation
PrimaryPointerGestureRecognizer({
this.deadline,
this.preAcceptSlopTolerance = kTouchSlop,
this.postAcceptSlopTolerance = kTouchSlop,
super.debugOwner,
super.supportedDevices,
super.allowedButtonsFilter,
}) : assert(
preAcceptSlopTolerance == null || preAcceptSlopTolerance >= 0,
'The preAcceptSlopTolerance must be positive or null',
),
assert(
postAcceptSlopTolerance == null || postAcceptSlopTolerance >= 0,
'The postAcceptSlopTolerance must be positive or null',
);