textDirection property

TextDirection textDirection
final

The text direction of the text to be displayed.

Sample code

This marquee has a RTL (Right-to-Left) text:

Marquee(
  text: 'טקסט בעברית',
  textDirection: TextDirection.rtl
)

See also:

  • text to provide the text itself.

Implementation

final TextDirection textDirection;