RadialSteps class Null safety

Construct a new RadialSteps that progresses from one color to the next in hard steps as opposed to smooth transitions by way of duplicating colors and stops.

See Steps for more information.

Inheritance
Implementers
Available Extensions

Constructors

RadialSteps({double softness = 0.0025, required List<Color> colors, List<double>? stops, AlignmentGeometry center = Alignment.center, double radius = 0.5, AlignmentGeometry? focal, double focalRadius = 0.0, TileMode tileMode = TileMode.clamp, GradientTransform? transform})
A Steps gradient differs from a standard 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 RadialGradient
Resolve these Steps to its smooth Gradient counterpart by colors and stops duplication, considering softness.
read-only, override
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
colors List<Color>
The colors the gradient should obtain at each of the stops. [...]
final, inherited
focal AlignmentGeometry?

"The focal point of the gradient. If specified, the gradient will appear to be focused along the vector from center to focal."

[...]
final
focalRadius double
See RadialGradient.focalRadius.
final
hashCode int
The hash code for this object. [...]
read-only, override
radius double
The distance from center to the outer edge of the final stops entry, or final color, is determined by this radius as a percentage of the shortest side of the "paintbox" onto which to paint this gradient. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
softness double
An incredibly small double to provide as an additive for each second entry when duplicating stops for this Steps. [...]
final, inherited
steppedColors List<Color>
A duplicated list of colors by CopyColors.
read-only, inherited
steppedStops List<double>
A duplicated list of stops by CopyStops (which may be null, in which case stopsOrImplied is employed). [...]
read-only, inherited
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({double? softness, List<Color>? colors, List<double>? stops, TileMode? tileMode, AlignmentGeometry? center, double? radius, AlignmentGeometry? focal, double? focalRadius, GradientTransform? transform}) RadialSteps
📋 Returns a new copy of this RadialSteps with any provided optional parameters overriding those of this.
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) RadialSteps
Returns a new RadialSteps 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(RadialSteps? a, RadialSteps? b, double t) RadialSteps?
Linearly interpolate between two RadialStepss. [...]
override