scheduleFading method
Implementation
AnimationAction scheduleFading(num duration, num weightNow, num weightThen) {
final AnimationMixer mixer = this.mixer;
final num now = mixer.time;
Interpolant? interpolant = _weightInterpolant;
if (interpolant == null) {
interpolant = mixer.lendControlInterpolant();
_weightInterpolant = interpolant;
}
final times = interpolant.parameterPositions;
final values = interpolant.sampleValues;
times[0] = now;
values[0] = weightNow;
times[1] = now + duration;
values[1] = weightThen;
return this;
}