width property

double get width

The horizontal space required to paint this text.

Valid only after layout has been called.

Implementation

double get width {
  assert(_debugAssertTextLayoutIsValid);
  assert(!_debugNeedsRelayout);
  return _layoutCache!.contentWidth;
}