GenericTransformUpdateDetails.fromPointerUpdate constructor

GenericTransformUpdateDetails.fromPointerUpdate(
  1. PointerPanZoomUpdateEvent details
)

Implementation

factory GenericTransformUpdateDetails.fromPointerUpdate(
    PointerPanZoomUpdateEvent details) {
  return GenericTransformUpdateDetails(
    focalPoint: details.position + details.pan,
    localFocalPoint: details.localPosition + details.localPan,
    scale: details.scale,
    rotation: details.rotation,
    kind: details.kind,
    buttons: details.buttons,
    pointerCount: 0,
  );
}