getAnimations method
Generates per-character underline progress animations.
Implementation
@override
List<CharacterAnimation> getAnimations(double progress, int charCount) {
if (charCount == 0) return [];
return List.generate(charCount, (index) {
final staggered = staggeredProgress(progress, index, charCount);
final curved = applyCurve(staggered);
final returnT = sin(curved * pi);
return CharacterAnimation(
underlineProgress: returnT,
color: lineColor,
);
});
}