steppedColors property Null safety

List<Color> steppedColors

If this is a Steps-type Gradient, returns this.steppedColors. Otherwise the fallback retrun value is colors.

Implementation

List<Color> get steppedColors =>
    this is Steps ? (this as Steps).steppedColors : colors;