createTintsAndShades function

Map<ConfigColor, List<Color>> createTintsAndShades(
  1. Iterable<ConfigColor> colors
)

Generate all the shades and tints for the given colors

Implementation

Map<ConfigColor, List<Color>> createTintsAndShades(
  Iterable<ConfigColor> colors,
) =>
    <ConfigColor, List<Color>>{
      for (final color in colors)
        color: [
          ...Iterable.generate(5, (i) => colorTint(color, 4 - i)),
          ...Iterable.generate(5, (i) => colorShade(color, i)),
        ],
    };