toColors method

List<Color> toColors({
  1. bool growable = true,
})

Returns the color palette as a list of Colors.

Implementation

List<Color> toColors({bool growable = true}) =>
    colors.map<Color>((color) => color.toColor()).toList(growable: growable);