reactElementRender function

CustomRender reactElementRender({
  1. List<InlineSpan>? children,
})

Implementation

CustomRender reactElementRender({List<InlineSpan>? children}) {
  return CustomRender.inlineSpan(
      inlineSpan: (context, buildChildren) => TextSpan(
            children: children ??
                (context.tree as ReactElement)
                    .children
                    .map((tree) => context.parser.parseTree(context, tree))
                    .map((childSpan) {
                  return _getReactChildren(
                    context,
                    context.tree as ReactElement,
                    childSpan,
                    context.style.generateTextStyle().merge(childSpan.style),
                  );
                }).toList(),
          ));
}