shadeFactor property
double
shadeFactor
If this is a ShadedSteps
-type Gradient
, returns this.shadeFactor
.
Otherwise the fallback retrun value is 0
.
Implementation
double get shadeFactor => this is LinearShadedSteps
? (this as LinearShadedSteps).shadeFactor
: this is RadialShadedSteps
? (this as RadialShadedSteps).shadeFactor
: this is SweepShadedSteps
? (this as SweepShadedSteps).shadeFactor
: 0;