focalRadius property Null safety

double focalRadius

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

Implementation

double get focalRadius => this is IntermediateGradient
    ? (this as IntermediateGradient).packet.focalRadius
    : this is RadialGradient
        ? (this as RadialGradient).focalRadius
        : this is RadialSteps
            ? (this as RadialSteps).focalRadius
            : 0.0;