buildTextSpan static method

TextSpan buildTextSpan(
  1. List<TextSpan> textSpans
)

Implementation

static TextSpan buildTextSpan(List<TextSpan> textSpans) => TextSpan(
    text: textSpans.firstOrNull?.text,
    style: textSpans.firstOrNull?.style,
    semanticsLabel: textSpans.firstOrNull?.semanticsLabel,
    recognizer: textSpans.firstOrNull?.recognizer,
    mouseCursor: textSpans.firstOrNull?.mouseCursor,
    onEnter: textSpans.firstOrNull?.onEnter,
    onExit: textSpans.firstOrNull?.onExit,
    locale: textSpans.firstOrNull?.locale,
    spellOut: textSpans.firstOrNull?.spellOut,
    children:
        textSpans.length > 1 ? textSpans.sublist(1, textSpans.length) : null);