calcYPoint function Null safety

double calcYPoint(
  1. double yEnd,
  2. int i,
  3. double distDeltaY
)

Calculate some Y point in pixel from y end point yEnd, index i and delta Y distance distDeltaY

Implementation

double calcYPoint(double yEnd, int i, double distDeltaY) {
  return yEnd - (i * distDeltaY);
}