endAngle property Null safety

double endAngle

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

Implementation

double get endAngle => this is IntermediateGradient
    ? (this as IntermediateGradient).packet.endAngle
    : this is SweepGradient
        ? (this as SweepGradient).endAngle
        : this is SweepSteps
            ? (this as SweepSteps).endAngle
            : 0.0;