computeMaxIntrinsicWidth method
Computes the maximum width required to render the text without wrapping.
Implementation
@override
double computeMaxIntrinsicWidth(double height) {
_textPainter.text = TextSpan(
style: normalStyle.style,
children: _parseText,
);
_textPainter.layout();
return _textPainter.width;
}