textDirection property Null safety

TextDirection? textDirection

The directionality of the text.

This is used to disambiguate how to render bidirectional text. For example, if the message is an English phrase followed by a Hebrew phrase, in a TextDirection.ltr context the English phrase will be on the left and the Hebrew phrase to its right, while in a TextDirection.rtl context, the English phrase will be on the right and the Hebrew phrase on its left.

Defaults to the ambient Directionality, if any.

See also:


final TextDirection? textDirection;