TypewriterAnimatedText constructor

TypewriterAnimatedText(
  1. String text, {
  2. TextAlign textAlign = TextAlign.start,
  3. TextStyle? textStyle,
  4. Duration speed = const Duration(milliseconds: 30),
  5. Curve curve = Curves.linear,
  6. String cursor = '_',
})

Implementation

TypewriterAnimatedText(
  String text, {
  TextAlign textAlign = TextAlign.start,
  TextStyle? textStyle,
  this.speed = const Duration(milliseconds: 30),
  this.curve = Curves.linear,
  this.cursor = '_',
}) : super(
        text: text,
        textAlign: textAlign,
        textStyle: textStyle,
        duration: speed * (text.characters.length + extraLengthForBlinks),
      );