ColorizeAnimatedText constructor
ColorizeAnimatedText(})
Implementation
ColorizeAnimatedText(
String text, {
TextAlign textAlign = TextAlign.start,
required TextStyle textStyle,
this.speed = const Duration(milliseconds: 200),
required this.colors,
this.textDirection = TextDirection.ltr,
}) : assert(null != textStyle.fontSize),
assert(colors.length > 1),
super(
text: text,
textAlign: textAlign,
textStyle: textStyle,
duration: speed * text.characters.length,
);