toColors method

List<Color> toColors()

Returns a new list containing all of the colors in this list casted to Colors.

Implementation

List<Color> toColors() => map<Color>((color) => color.toColor()).toList();