paintHeightWithTextStyle method
Implementation
double paintHeightWithTextStyle(TextStyle style, {required double maxWidth}) {
final TextPainter textPainter =
TextPainter(text: TextSpan(text: this, style: style), textDirection: TextDirection.ltr)
..layout(minWidth: 0, maxWidth: maxWidth);
return textPainter.size.height;
}