textDirection property
TextDirection
get
textDirection
The direction of text flow (left-to-right or right-to-left).
Setting this property updates the text painter and triggers a layout recalculation.
Implementation
TextDirection get textDirection => _textDirection;
set
textDirection
(TextDirection value)
Implementation
set textDirection(TextDirection value) {
if (_textDirection == value) return;
_textDirection = value;
_textPainter.textDirection = value;
markNeedsLayout();
}