ticks static method
Evenly spaced tick values from 0...maxValue, inclusive, with count steps.
Implementation
static List<double> ticks({required double max, required int count}) {
if (count <= 0) return const [];
return [for (var i = 0; i <= count; i++) max * i / count];
}