textDirection property

TextDirection textDirection
final

Provides TextDirection - a direction in which text flows. Default is TextDirection.ltr. Default scrolling direction would be opposite to textDirection, e.g. for TextDirection.rtl scrolling would be from left to right

Example:

TextScroll(
  'Hey! I\'m a RTL text, check me out. Hey! I\'m a RTL text, check me out. Hey! I\'m a RTL text, check me out. ',
  textDirection: TextDirection.rtl,
)

Implementation

final TextDirection textDirection;