getIntrinsicHeight method
Computes the intrinsic height of this widget under the given width constraint.
Implementation
@override
int getIntrinsicHeight(int width) {
if (!wrap) {
return maxLines != null ? min(maxLines!, 1) : 1;
}
final lines = _wrapText(data, width);
final count = lines.length;
return maxLines != null ? min(maxLines!, count) : count;
}