completeText method
Widget showing the complete text (when animation is complete or paused). By default, it shows a Text widget, but this may be overridden.
Implementation
@override
Widget completeText(BuildContext context) {
final linearGradient = LinearGradient(colors: _colors).createShader(
Rect.fromLTWH(0.0, 0.0, _colorShifter.value, 0.0),
);
return DefaultTextStyle.merge(
style: textStyle,
child: Text(
text,
style: TextStyle(foreground: Paint()..shader = linearGradient),
textAlign: textAlign,
),
);
}