ScaleGestureRecognizer constructor

ScaleGestureRecognizer({
  1. Object? debugOwner,
  2. Set<PointerDeviceKind>? supportedDevices,
  3. AllowedButtonsFilter allowedButtonsFilter = _defaultButtonAcceptBehavior,
  4. DragStartBehavior dragStartBehavior = DragStartBehavior.down,
  5. bool trackpadScrollCausesScale = false,
  6. 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,
});