textDirection property

TextDirection? textDirection
final

The direction of label, such as TextDirection.rtl for a name the user typed in Arabic or Hebrew in a left-to-right app.

When null (the default), the label takes the ambient Directionality. The icon and the padding keep following the ambient direction. Screen readers get the label with this direction, unless semanticLabel names the toggle.

Implementation

final TextDirection? textDirection;