TypeWriter constructor

const TypeWriter({
  1. Key? key,
  2. TextStyle? style,
  3. required List<TextSpan> text,
  4. int speed = 50,
  5. bool autoStart = true,
  6. VoidCallback? onFinish,
  7. TextAlign textAlign = TextAlign.start,
  8. TextDirection? textDirection,
  9. bool softWrap = true,
  10. TextOverflow overflow = TextOverflow.clip,
  11. TextScaler textScaler = const TextScaler.linear(1),
  12. int? maxLines,
  13. Locale? locale,
  14. StrutStyle? strutStyle,
  15. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
})

Implementation

const TypeWriter({
  Key? key,
  this.style,
  required this.text,
  this.speed = 50,
  this.autoStart = true,
  this.onFinish,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.softWrap = true,
  this.overflow = TextOverflow.clip,
  this.textScaler = const TextScaler.linear(1),
  this.maxLines,
  this.locale,
  this.strutStyle,
  this.textWidthBasis = TextWidthBasis.parent,
}) : super(key: key);