buildText method
Implementation
Widget buildText() {
TextStyle? ts = null;
if (_height != null) {
ts = TextStyle(height: _height);
}
final richText = RichText(
text: TextSpan(children: children, style: ts),
softWrap: _softWrap,
textAlign: _textAlign,
maxLines: _maxLines,
overflow: _overflow,
);
return _gesture == null
? richText
: Tappable(
onTap: _gesture,
child: richText,
);
}