If this is a Steps-type Gradient, returns this.steppedColors. Otherwise the fallback retrun value is colors.
Gradient
this.steppedColors
colors
List<Color> get steppedColors => this is Steps ? (this as Steps).steppedColors : colors;