TypewriterText constructor

const TypewriterText(
  1. String text, {
  2. Key? key,
  3. TextStyle style = const TextStyle(),
  4. StrutStyle? strutStyle,
  5. TextAlign? textAlign = TextAlign.left,
  6. TextDirection? textDirection,
  7. Locale? locale,
  8. bool softWrap = true,
  9. TextOverflow overflow = TextOverflow.clip,
  10. double? textScaleFactor,
  11. int? maxLines,
  12. String? semanticsLabel,
  13. TextWidthBasis? textWidthBasis,
  14. TextHeightBehavior? textHeightBehavior,
  15. Color? sectionColor,
  16. Duration duration = const Duration(milliseconds: 250),
})

Implementation

const TypewriterText(this.text, {
  Key? key,
  this.style = const TextStyle(),
  this.strutStyle,
  this.textAlign = TextAlign.left,
  this.textDirection,
  this.locale,
  this.softWrap = true,
  this.overflow = TextOverflow.clip,
  this.textScaleFactor,
  this.maxLines,
  this.semanticsLabel,
  this.textWidthBasis,
  this.textHeightBehavior,
  this.sectionColor,
  this.duration = const Duration(milliseconds: 250),
}) : super(key: key);