setFocusPoint method

void setFocusPoint(
  1. TapUpDetails details,
  2. double maxWidth,
  3. double maxHeight
)

Implementation

void setFocusPoint(TapUpDetails details, double maxWidth, double maxHeight) {
  Offset newPoint = Offset(
    details.localPosition.dx / maxWidth,
    details.localPosition.dy / maxHeight,
  );
  CameraMacOS.instance.setFocusPoint(newPoint);
}