getSingleScreenCandleCount method

int getSingleScreenCandleCount(
  1. double width
)

Implementation

int getSingleScreenCandleCount(double width) {
  screenWidth = width;
  double count =
      (screenWidth - kCandlestickGap) / ((candlestickWidth ?? 0) + kCandlestickGap);
  int totalScreenCountNum = count.toInt();
  return totalScreenCountNum;
}