OrthographicSize.contain constructor

const OrthographicSize.contain(
  1. double width,
  2. double height
)

Shows at least width by height world units, growing one axis to match the aspect ratio so the whole area stays visible.

Implementation

const factory OrthographicSize.contain(double width, double height) =
    OrthographicContain;