getShades method
generate the gradient of a color with
lightness from 0 to 1 in stepCount
steps
Implementation
List<Color> getShades(int stepCount, {bool skipFirst = true}) =>
List.generate(
stepCount,
(index) {
return hsl
.withLightness(1 -
((index + (skipFirst ? 1 : 0)) /
(stepCount - (skipFirst ? -1 : 1))))
.toColor();
},
);