mode property

TextScrollMode mode
final

Sets one of two different types of scrolling behavior.

TextScrollMode.endless - default, scrolls text in one direction endlessly.

TextScrollMode.bouncing - when text string is scrolled to its end, starts animation to opposite direction.

Example:

TextScroll(
  'Animate text string back and forth',
  mode: TextScrollMode.bouncing,
)

Implementation

final TextScrollMode mode;