width property

  1. @override
double width
override

The width of the text. If not explicitly set, it returns double.infinity.

Setting a value to this property will invalidate the size of the text and trigger a rebuild on the next render.

Implementation

@override
double get width {
  return _width;
}
  1. @override
void width=(double? value)
override

Sets the width of the text. Setting a new value will invalidate the size of the text and trigger a rebuild on the next render.

Implementation

@override
set width(double? value) {
  if (value == null || _width == value) return;
  _width = value;
  _invalidSize = true;
}