visibleSize method
The visible (width, height) in world units for a view of viewportSize
logical pixels.
Implementation
@override
Vector2 visibleSize(ui.Size viewportSize) {
final aspectRatio = _aspectOf(viewportSize);
return aspectRatio * height >= width
? Vector2(height * aspectRatio, height)
: Vector2(width, width / aspectRatio);
}