buildTextSpan function

InlineSpan buildTextSpan(
  1. Text node,
  2. TextStyle? parentStyle,
  3. bool shouldParseHtml
)

get textSpan by one node

Implementation

InlineSpan buildTextSpan(
    m.Text node, TextStyle? parentStyle, bool shouldParseHtml) {
  final nodes = shouldParseHtml ? parseHtml(node) : [];
  if (nodes.isEmpty) {
    return TextSpan(text: node.text, style: parentStyle);
  } else {
    return getBlockSpan(nodes as List<m.Node>?, node, parentStyle);
  }
}