ColorPalette.from constructor
Constructs a ColorPalette from colors
.
Implementation
factory ColorPalette.from(List<Color> colors) {
return ColorPalette(List<ColorModel>.from(
colors.map((color) => RgbColor.fromColor(color))));
}
Constructs a ColorPalette from colors
.
factory ColorPalette.from(List<Color> colors) {
return ColorPalette(List<ColorModel>.from(
colors.map((color) => RgbColor.fromColor(color))));
}