build method

  1. @override
Widget build(
  1. BuildContext context
)
override

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,
  );
}