getIntrinsicHeight method
Computes the intrinsic height of this widget under the given width constraint.
Implementation
@override
int getIntrinsicHeight(int width) {
if (!multiline) return 1;
final lines = value.split('\n');
return max(1, lines.length);
}