getViewportPosition method

Offset getViewportPosition(
  1. Offset position
)

Implementation

Offset getViewportPosition(Offset position) {
  return _viewPort.globalToLocal(position.toVector2()).toOffset();
}