getScreenWidth method

double getScreenWidth()

Implementation

double getScreenWidth() {
  double widthCalc = useShortestSide
      ? (windowWidth < windowHeight ? windowWidth : windowHeight)
      : windowWidth;

  return widthCalc;
}