SweepShadedSteps class Null safety

Construct a new SweepShadedSteps that progresses from one color to the next in hard steps, each with its own intrinsic "shading," as opposed to smooth transitions by way of "quadruplicating" colors and stops.

Consider SweepSteps for more information.
The difference for FooShadedSteps is that instead of duplicating a color to make it hard step at each transition, each color and stop is laid out according to a softness, shadeFunction and shadeFactor to provide the same effect across four entries instead of only two and allow greater control over the inner appearance of each given step.

Inheritance
Available Extensions

Constructors

SweepShadedSteps({ColorArithmetic shadeFunction = Shades.withWhite, double shadeFactor = -90, double distance = 0.6, double softness = 0.0, required List<Color> colors, List<double>? stops, TileMode tileMode = TileMode.clamp, AlignmentGeometry center = Alignment.center, double startAngle = 0.0, double endAngle = math.pi * 2, GradientTransform? transform})
A standard Steps gradient differs from the average Gradient in its progression from one color to the next. Instead of smoothly transitioning between colors, Steps have hard edges created by duplicating colors and stops. [...]
const

Properties

asGradient SweepGradient
Resolve these Steps to its smooth Gradient counterpart by colors and stops duplication, considering softness.
read-only, inherited
center AlignmentGeometry
The color that correlates to stops entry 0 (the first color) is placed at AlignmentGeometry center, an offset into the (-1,-1) x (1,1) "paintbox" onto which the gradient will be painted. [...]
final, inherited
colors List<Color>
The colors the gradient should obtain at each of the stops. [...]
final, inherited
distance double
A value between 0.0 .. 1.0, defaulting at 0.6, that places the "midpoint" for each color shading function in the Steps. [...]
final
endAngle double
The startAngle is just as described by SweepGradient.startAngle: [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shadeFactor double
A double to provide to shadeFunction when "shading" each colored step. [...]
final
shadeFunction ColorArithmetic
For any given "step", comprised of a single color "quadruplicated" across four stops, the shadeFunction will be called on the color and this result is placed as the fourth, final stop for this color step. [...]
final
softness double
An incredibly small double to provide as an additive for each second entry when duplicating stops for this Steps. [...]
final, inherited
startAngle double
The startAngle is just as described by SweepGradient.startAngle: [...]
final, inherited
steppedColors List<Color>
Overrides Steps property to "quadruplicate" with shading instead of only duplicating.
read-only, override
steppedStops List<double>
Overrides Steps property to "quadruplicate" with shading instead of only duplicating.
read-only, override
stops List<double>?
A list of values from 0.0 to 1.0 that denote fractions along the gradient. [...]
final, inherited
tileMode TileMode
How these Steps should tile the plane beyond the region before its starting stop and after its ending stop. [...]
final, inherited
transform GradientTransform?
The transform, if any, to apply to the gradient. [...]
final, inherited

Methods

copyWith({ColorArithmetic? shadeFunction, double? shadeFactor, double? distance, double? softness, List<Color>? colors, List<double>? stops, TileMode? tileMode, AlignmentGeometry? center, double? startAngle, double? endAngle, GradientTransform? transform}) SweepShadedSteps
📋 Returns a new copy of this SweepShadedSteps with any provided optional parameters overriding those of this.
override
createShader(Rect rect, {TextDirection? textDirection}) Shader
Resolve these Steps to its smooth Gradient counterpart, then use that gradient's createShader() method. [...]
inherited
lerpFrom(Gradient? a, double t) Gradient?
Linearly interpolates from another Gradient to this. [...]
override
lerpTo(Gradient? b, double t) Gradient?
Linearly interpolates from this to another Gradient. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
scale(double factor) SweepShadedSteps
Returns a new SweepSteps with its colors scaled by the given factor. Since the alpha channel is what receives the scale factor, 0.0 or less results in a gradient that is fully transparent.
override
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override

Static Methods

lerp(SweepShadedSteps? a, SweepShadedSteps? b, double t) SweepShadedSteps?
Linearly interpolate between two SweepShadedStepss. [...]
override