colors property Null safety

List<Color> colors
final

The colors the gradient should obtain at each of the stops.

If stops is non-null, this list must have the same length as stops.

This list must have at least two colors in it (otherwise, it's not a gradient!).

Implementation

final List<Color> colors;