computeWidth method
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;