screenSizeOn method

Size screenSizeOn(
  1. Orientation orientation
)

The screen size choice depends on the orientation.

Implementation

Size screenSizeOn(Orientation orientation) =>
    orientation == Orientation.portrait ? screenSize : screenSize.flipped;