shadeFunction property

ColorArithmetic shadeFunction

If this is a ShadedSteps-type Gradient, returns this.shadeFunction. Otherwise the fallback retrun value is Shades.withWhite.

Implementation

ColorArithmetic get shadeFunction => this is LinearShadedSteps
    ? (this as LinearShadedSteps).shadeFunction
    : this is RadialShadedSteps
        ? (this as RadialShadedSteps).shadeFunction
        : this is SweepShadedSteps
            ? (this as SweepShadedSteps).shadeFunction
            : Shades.withWhite;