canvasPosition property

Vector2 canvasPosition
latefinalinherited

Event position in the coordinate space of the game widget, i.e. relative to the game canvas.

This could be considered the Flame-level global position.

Implementation

late final Vector2 canvasPosition =
    _game.convertGlobalToLocalCoordinate(devicePosition);