ScaleGestureRecognizer constructor
- Object? debugOwner,
- Set<
PointerDeviceKind> ? supportedDevices, - AllowedButtonsFilter allowedButtonsFilter = _defaultButtonAcceptBehavior,
- DragStartBehavior dragStartBehavior = DragStartBehavior.down,
- bool trackpadScrollCausesScale = false,
- Offset trackpadScrollToScaleFactor = kDefaultTrackpadScrollToScaleFactor,
Create a gesture recognizer for interactions intended for scaling content.
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
ScaleGestureRecognizer({
super.debugOwner,
super.supportedDevices,
super.allowedButtonsFilter,
this.dragStartBehavior = DragStartBehavior.down,
this.trackpadScrollCausesScale = false,
this.trackpadScrollToScaleFactor = kDefaultTrackpadScrollToScaleFactor,
});