devicePosition property
Event position in the coordinate space of the device -- either the phone, or the browser window, or the app.
If the game runs in a full-screen mode, then this would be equal to the
canvasPosition
. Otherwise, the devicePosition
is the Flutter-level
global position.
Implementation
final Vector2 devicePosition;