Palette.fromStringList constructor

Palette.fromStringList(
  1. List<String> hexList
)

Creates a new palette from Hex String list.

Implementation

factory Palette.fromStringList(List<String> hexList) {
  var colors = hexList.map((c) => Color(int.tryParse(c)!)).toList();
  return Palette(colors: colors);
}