preCalculateSteps static method
Pre-calculate step values for loops
Implementation
static List<double> preCalculateSteps(double start, double end, int count) {
final step = (end - start) / count;
return List.generate(count + 1, (i) => start + step * i);
}