TextSegment class
A segment of text that can be either static or animated.
Used by AnimatedRichText to mix animated and non-animated parts within a single text string.
Constructors
-
TextSegment.animated(String text, {List<
TextEffect> effects = const []}) -
Creates an animated text segment with the given
effects.const - TextSegment.static(String text)
-
Creates a static (non-animated) text segment.
const
Properties
-
effects
→ List<
TextEffect> -
Effects applied only when isAnimated is true.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAnimated → bool
-
Whether this segment is animated.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The text content of this segment.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited