IntermediateGradient class Null safety

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

colors List<Color>
The colors the gradient should obtain at each of the stops. [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
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
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. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stops List<double>?
A list of values from 0.0 to 1.0 that denote fractions along the gradient. [...]
final, inherited
transform GradientTransform?
The transform, if any, to apply to the gradient. [...]
final, inherited

Methods

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. [...]
@protected, inherited
lerpTo(Gradient? b, double t) Gradient?
Linearly interpolates from this to another Gradient. [...]
@protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

Operators

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