computeColor method
Computes the color based on the progress
.
The progress
parameter is typically a value between 0 and 1 representing
the animation progress. The implementation should return the computed color
based on the current progress
.
progress
: A double value indicating the progress of the animation.
Returns the computed Color.
Implementation
@override
Color computeColor(double progress) {
// Returns the fixed color, ignoring progress.
return color;
}