size property

  1. @override
Vector2 size
override

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.

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

Implementation

@override
Vector2 get size => camera.viewport.virtualSize;