virtualSize property

  1. @override
Vector2 get virtualSize
override

In most cases virtualSize is the same as size, but in the cases when the viewport is emulating a different size, this is the size of the emulated viewport, for example the resolution for the FixedResolutionViewport.

Implementation

@override
Vector2 get virtualSize => resolution;