TyperAnimatedText constructor

TyperAnimatedText(
  1. String text, {
  2. TextAlign textAlign = TextAlign.start,
  3. TextStyle? textStyle,
  4. Duration speed = const Duration(milliseconds: 40),
  5. Curve curve = Curves.linear,
})

Implementation

TyperAnimatedText(
  String text, {
  TextAlign textAlign = TextAlign.start,
  TextStyle? textStyle,
  this.speed = const Duration(milliseconds: 40),
  this.curve = Curves.linear,
}) : super(
        text: text,
        textAlign: textAlign,
        textStyle: textStyle,
        duration: speed * text.characters.length,
      );