distance property

double distance

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

Implementation

double get distance => this is LinearShadedSteps
    ? (this as LinearShadedSteps).distance
    : this is RadialShadedSteps
        ? (this as RadialShadedSteps).distance
        : this is SweepShadedSteps
            ? (this as SweepShadedSteps).distance
            : 0.0;