ScaleGestureRecognizer constructor Null safety

ScaleGestureRecognizer(
  1. {Object? debugOwner,
  2. @Deprecated('Migrate to supportedDevices. ' 'This feature was deprecated after v2.3.0-1.0.pre.') PointerDeviceKind? kind,
  3. Set<PointerDeviceKind>? supportedDevices,
  4. DragStartBehavior dragStartBehavior = DragStartBehavior.down}
)

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,
  @Deprecated(
    'Migrate to supportedDevices. '
    'This feature was deprecated after v2.3.0-1.0.pre.',
  )
  super.kind,
  super.supportedDevices,
  this.dragStartBehavior = DragStartBehavior.down,
}) : assert(dragStartBehavior != null);