deviceDelta property

Vector2 deviceDelta
latefinalinherited

Event delta 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 canvasDelta. Otherwise, the deviceDelta is the Flutter-level global position.

Implementation

late final Vector2 deviceDelta = deviceEndPosition - deviceStartPosition;