calcW static method

double calcW(
  1. double width
)

Implementation

static double calcW(double width) {
  double factor = Get.size.width / width;
  return (Get.size.width / factor).roundToDouble();
}