SequenceText constructor

const SequenceText(
  1. String text, {
  2. List<TextEffect> effects = const [],
  3. TextStyle? style,
  4. List<TextSegment>? segments,
})

Creates a SequenceText entry for AnimatedTextSequence.

text — the text to display (required, positional). effects — animation effects applied to the text. style — optional style override for this item. segments — optional mixed static/animated segments. When set, takes priority over effects.

Implementation

const SequenceText(
  this.text, {
  this.effects = const [],
  this.style,
  this.segments,
});