build method
Describes the part of the UI represented by this widget.
Implementation
@override
Widget build(BuildContext context) {
final content = _renderRichSpanContent(
text,
baseStyle: style,
textAlign: textAlign,
softWrap: softWrap,
overflow: overflow,
maxWidth: maxWidth,
);
return _SelectableRenderedText(
text: content.text,
controller: controller,
selectionHighlightStyle: selectionHighlightStyle,
selectionHighlightRangesByLine: content.selectionHighlightRangesByLine,
);
}