computeWidth method

double computeWidth(
  1. Size viewport
)

Implementation

double computeWidth(Size viewport) => viewport.width >= viewport.height ? landscapePercent * viewport.width + landscapeWpc * viewport.width + landscapeHpc * viewport.height + landscapePx :
 portraitPercent * viewport.width + portraitWpc * viewport.width + portraitHpc * viewport.height + portraitPx;