If this is a Steps-type Gradient, returns this.softness. Otherwise the fallback retrun value is 0.0.
Gradient
this.softness
0.0
double get softness => this is IntermediateGradient ? (this as IntermediateGradient).packet.softness : this is Steps ? (this as Steps).softness : 0.0;