IntermediateGradient class

A new IntermediateGradient can be resolved to a discrete form of Gradient during tweens.

Inheritance
Available extensions

Constructors

IntermediateGradient(PrimitiveGradient primitive, GradientPacket packet, {GradientCopyWith overrideCopyWith = spectrumCopyWith})
Considering the GradientPacket.gradient to output, packet of potential properties from both of two gradients, and the primitive of colors and stops formed from those same two gradients:

Properties

asNill Gradient

Available on Gradient, provided by the NillGradients extension

Gradient get asNill => nillify( /* this. */ runtimeType);
no setter
begin AlignmentGeometry

Available on Gradient, provided by the GradientUtils extension

If this is a linear-type Gradient, returns this.begin. Otherwise the fallback retrun value is Alignment.center.
no setter
center AlignmentGeometry

Available on Gradient, provided by the GradientUtils extension

If this is a radial- or sweep-type Gradient, returns this.center. Otherwise the fallback retrun value is Alignment.center.
no setter
colors List<Color>
The colors the gradient should obtain at each of the stops.
finalinherited
distance double

Available on Gradient, provided by the GradientUtils extension

If this is a ShadedSteps-type Gradient, returns this.distance. Otherwise the fallback retrun value is 0.0.
no setter
end AlignmentGeometry

Available on Gradient, provided by the GradientUtils extension

If this is a linear-type Gradient, returns this.end. Otherwise the fallback retrun value is Alignment.center.
no setter
endAngle double

Available on Gradient, provided by the GradientUtils extension

If this is a sweep-type Gradient, returns this.endAngle. Otherwise the fallback retrun value is 0.0.
no setter
focal AlignmentGeometry?

Available on Gradient, provided by the GradientUtils extension

If this is a radial-type Gradient, returns this.focal which may be null. Otherwise the fallback retrun value is null.
no setter
focalRadius double

Available on Gradient, provided by the GradientUtils extension

If this is a radial-type Gradient, returns this.focalRadius. Otherwise the fallback retrun value is 0.0.
no setter
hashCode int
The hash code for this object.
no setterinherited
packet GradientPacket
This Packet holds onto two Gradients and a t keyframe.
final
primitive PrimitiveGradient
The most basic representation of a Gradient:
a list of colors and a list of stops.
final
radius double

Available on Gradient, provided by the GradientUtils extension

If this is a radial-type Gradient, returns this.radius. Otherwise the fallback retrun value is 0.0.
no setter
resolved Gradient
Returns the literal Gradient result that this interpreted IntermediateGradient represents with its interpolated packet, a GradientPacket with its own t keyframe, and primitive basic gradient representation with colors and stops.
no setter
reversed Gradient

Available on Gradient, provided by the GradientUtils extension

Returns a copy of this Gradient with its List<Color> colors reversed as well as any potential stops.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadeFactor double

Available on Gradient, provided by the GradientUtils extension

If this is a ShadedSteps-type Gradient, returns this.shadeFactor. Otherwise the fallback retrun value is 0.
no setter
shadeFunction ColorArithmetic

Available on Gradient, provided by the GradientUtils extension

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

Available on Gradient, provided by the GradientUtils extension

If this is a Steps-type Gradient, returns this.softness. Otherwise the fallback retrun value is 0.0.
no setter
startAngle double

Available on Gradient, provided by the GradientUtils extension

If this is a sweep-type Gradient, returns this.startAngle. Otherwise the fallback retrun value is 0.0.
no setter
steppedColors List<Color>

Available on Gradient, provided by the GradientUtils extension

If this is a Steps-type Gradient, returns this.steppedColors. Otherwise the fallback retrun value is colors.
no setter
steppedStops List<double>?

Available on Gradient, provided by the GradientUtils extension

If this is a Steps-type Gradient, returns this.steppedStops. Otherwise the fallback retrun value is stops.
no setter
stops List<double>?
A list of values from 0.0 to 1.0 that denote fractions along the gradient.
finalinherited
tileMode TileMode

Available on Gradient, provided by the GradientUtils extension

How this Gradient tiles in the plane beyond the region before its starting stop and after its ending stop.
no setter
transform GradientTransform?
The transform, if any, to apply to the gradient.
finalinherited

Methods

animate({required Animation<double> controller, Map<GradientAnimation, dynamic> storyboard = const {}, GradientCopyWith overrideCopyWith = spectrumCopyWith}) Gradient

Available on Gradient, provided by the GradientUtils extension

Returns the AnimatedGradient.observe animated Gradient output from a new AnimatedGradient constructed by this gradient and the provided parameters.
copyWith({List<Color>? colors, List<double>? stops, GradientTransform? transform, TileMode? tileMode, AlignmentGeometry? begin, AlignmentGeometry? end, AlignmentGeometry? center, double? radius, AlignmentGeometry? focal, double? focalRadius, double? startAngle, double? endAngle, double? softness, ColorArithmetic? shadeFunction, double? shadeFactor, double? distance}) Gradient

Available on Gradient, provided by the GradientUtils extension

📋 Returns a new copy of this Gradient with any appropriate optional parameters overriding those of this.
createShader(Rect rect, {TextDirection? textDirection}) Shader
Falls back to LinearGradient if type is not hard-coded.
override
lerpFrom(Gradient? a, double t) Gradient?
Linearly interpolates from another Gradient to this.
inherited
lerpTo(Gradient? b, double t) Gradient?
Linearly interpolates from this to another Gradient.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale(double factor) IntermediateGradient
Returns a new gradient with its properties scaled by the given factor.
override
toString() String
A string representation of this object.
inherited
withOpacity(double opacity) Gradient
Returns a new Gradient with each color set to the given opacity.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited