textWidthBasis property Null safety

TextWidthBasis textWidthBasis

Defines how to measure the width of the rendered text.

Implementation

TextWidthBasis get textWidthBasis => _textWidthBasis;
void textWidthBasis=(TextWidthBasis value)

Implementation

set textWidthBasis(TextWidthBasis value) {
  assert(value != null);
  if (_textWidthBasis == value) {
    return;
  }
  _textWidthBasis = value;
  markNeedsLayout();
}