intrinsicWidth property
double
intrinsicWidth
The intrinsic width of the text. If the width is set to double.infinity, this value will be equal to the text width, otherwise it will be equal to the set width.
Implementation
double get intrinsicWidth {
return width == double.infinity ? textWidth : width;
}