getViewportPosition method

Offset getViewportPosition(
  1. Offset position
)

Implementation

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