ScaleStartDetails constructor Null safety

ScaleStartDetails(
  1. {Offset focalPoint = Offset.zero,
  2. Offset? localFocalPoint,
  3. int pointerCount = 0}
)

Creates details for GestureScaleStartCallback.

The focalPoint argument must not be null.

Implementation

ScaleStartDetails({ this.focalPoint = Offset.zero, Offset? localFocalPoint, this.pointerCount = 0 })
  : assert(focalPoint != null), localFocalPoint = localFocalPoint ?? focalPoint;