LinearInterpolationParticleColor class

A ParticleColor subclass representing a linear interpolation of colors for particles.

Inheritance

Constructors

LinearInterpolationParticleColor({required List<Color> colors})
const

Properties

colors List<Color>
The list of colors to be interpolated for particles.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

computeColor(double progress) Color
Computes the color based on the progress. The progress is typically a value between 0 and 1 representing the animation progress, and particle is the particle to be configured.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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