width property
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;
}
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;
}