textWidthBasis property Null safety
Defines how to measure the width of the rendered text.
Implementation
TextWidthBasis get textWidthBasis => _textPainter.textWidthBasis;
Implementation
set textWidthBasis(TextWidthBasis value) {
assert(value != null);
if (_textPainter.textWidthBasis == value) {
return;
}
_textPainter.textWidthBasis = value;
markNeedsTextLayout();
}