softness property Null safety

double softness

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

Implementation

double get softness => this is IntermediateGradient
    ? (this as IntermediateGradient).packet.softness
    : this is Steps
        ? (this as Steps).softness
        : 0.0;