getWidthRatio method

double getWidthRatio(
  1. double val
)

Implementation

double getWidthRatio(double val) {
  final res = (val / refWidth) * 100;
  return res * blockSizeHorizontal;
}