frameSizeOn method

Size frameSizeOn(
  1. Orientation orientation
)

The frame size choice depends on the orientation.

Implementation

Size frameSizeOn(Orientation orientation) =>
    orientation == Orientation.portrait ? frameSize : frameSize.flipped;