size property

  1. @override
Vector2 get size
inherited

This is overwritten to consider the viewport transformation.

Which means that this is the logical size of the game screen area as exposed to the canvas after viewport transformations and camera zooming.

This does not match the Flutter widget size; for that see canvasSize.

Implementation

@override
Vector2 get size => camera.gameSize;