GenericTransformUpdateDetails.fromScaleUpdate constructor

GenericTransformUpdateDetails.fromScaleUpdate(
  1. ScaleUpdateDetails details
)

Implementation

factory GenericTransformUpdateDetails.fromScaleUpdate(
    ScaleUpdateDetails details) {
  return GenericTransformUpdateDetails(
    focalPoint: details.focalPoint,
    localFocalPoint: details.localFocalPoint,
    scale: details.scale,
    rotation: details.rotation,
    pointerCount: details.pointerCount,
    kind: PointerDeviceKind.touch,
  );
}