TypeWriterText constructor
const
TypeWriterText({})
Create a wrapper widget to animate Text with typewriter animation.
const TypeWriterText(
text: Text("your text"),
duration: Duration(milliseconds:50),
);
Implementation
const TypeWriterText({
super.key,
this.alignment,
this.maintainSize = true,
this.repeat = false,
this.play = true,
this.onFinished,
required this.text,
required this.duration,
}) : _type = _TypeWriterTextType._text,
builder = null,
data = '',
assert(onFinished == null || !repeat && play,
'Cannot have onFinished when ${repeat ? '[repeat] is `true`.' : '[play] is `false`.'}');