buildText method

TextSpan buildText(
  1. BuildContext context,
  2. LineNode node
)

Implementation

TextSpan buildText(BuildContext context, LineNode node) {
  final theme = ZefyrTheme.of(context);
  final children = node.children
      .map((node) => _segmentToTextSpan(node, theme))
      .toList(growable: false);
  return TextSpan(
    style: _getParagraphTextStyle(node.style, theme),
    children: children,
  );
}