LinearShadedSteps class
- Inheritance
-
- Object
- Gradient
- Steps
- LinearSteps
- LinearShadedSteps
- Available Extensions
Constructors
-
LinearShadedSteps({ColorArithmetic shadeFunction = Shades.withWhite, num shadeFactor = -90, double distance = 0.6, double softness = 0.0, required List<
Color> colors, List<double> ? stops, AlignmentGeometry begin = Alignment.centerLeft, AlignmentGeometry end = Alignment.centerRight, TileMode tileMode = TileMode.clamp, GradientTransform? transform}) -
const
Properties
- asGradient → LinearGradient
-
Resolve these
Steps
to its smoothGradient
counterpart.no setterinherited - begin → AlignmentGeometry
-
finalinherited
-
colors
→ List<
Color> -
The colors the gradient should obtain at each of the stops.
finalinherited
- distance → double
-
final
- end → AlignmentGeometry
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadeFactor → num
-
final
- shadeFunction → ColorArithmetic
-
final
- softness → double
-
An incredibly small
double
to provide as anadditive
for each second entry when duplicating stops for thisSteps
.finalinherited -
steppedColors
→ List<
Color> -
A duplicated list of colors by
CopyColors
.no setteroverride -
steppedStops
→ List<
double> -
A duplicated list of stops (which may be
null
, in which casestopsOrImplied
is employed).no setteroverride -
stops
→ List<
double> ? -
A list of values from 0.0 to 1.0 that denote fractions along the gradient.
finalinherited
- tileMode → TileMode
-
How these
Steps
should tile the plane beyond the region before its starting stop and after its ending stop.finalinherited - transform → GradientTransform?
-
The transform, if any, to apply to the gradient.
finalinherited
Methods
-
copyWith(
{ColorArithmetic? shadeFunction, int? shadeFactor, double? distance, double? softness, List< Color> ? colors, List<double> ? stops, AlignmentGeometry? begin, AlignmentGeometry? end, TileMode? tileMode, GradientTransform? transform}) → LinearShadedSteps -
📋 Returns a new copy of this
LinearShadedSteps
with any provided optional parameters overriding those ofthis
.override -
createShader(
Rect rect, {TextDirection? textDirection}) → Shader -
Resolve these
Steps
to its smoothGradient
counterpart, then use that gradient'screateShader()
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 nonexistent method or property is accessed.
inherited
-
scale(
double factor) → LinearShadedSteps -
Returns a new LinearSteps 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(
LinearShadedSteps? a, LinearShadedSteps? b, double t) → Gradient? -
Linearly interpolate between two LinearSteps.
override