ScaleUpdateDetails constructor

ScaleUpdateDetails(
  1. {Offset focalPoint: Offset.zero,
  2. double scale: 1.0,
  3. double rotation: 0.0,
  4. PointerEvent pointerEvent,
  5. int pointCount: 1}
)

Creates details for GestureScaleUpdateCallback.

The focalPoint, scale, rotation arguments must not be null. The scale argument must be greater than or equal to zero.

Implementation

ScaleUpdateDetails({
  this.focalPoint = Offset.zero,
  this.scale = 1.0,
  this.rotation = 0.0,
  this.pointerEvent,
  this.pointCount = 1,
})  : assert(scale != null && scale >= 0.0),
      assert(rotation != null);