TextSegment.animated constructor

const TextSegment.animated(
  1. String text, {
  2. List<TextEffect> effects = const [],
})

Creates an animated text segment with the given effects.

text — the text to animate. effects — list of TextEffects applied to this segment.

Implementation

const TextSegment.animated(this.text, {this.effects = const []})
    : isAnimated = true;