viewport property

Vector2 viewport
latefinal

Coordinates of the event relative to the game position/size but applying only viewport transformations (not camera).

Implementation

late final Vector2 viewport = _game.viewportProjector.unprojectVector(widget);