renderMarkup function

String renderMarkup({
  1. required DomBuilderFn builderFn,
  2. DomValidator? domValidator,
  3. String? prefixContent,
})

Render markup into a String.

Implementation

String renderMarkup({
  required DomBuilderFn builderFn,
  DomValidator? domValidator,
  String? prefixContent,
}) {
  final sink = StringBuffer();
  if (prefixContent != null) {
    sink.write(prefixContent);
  }
  renderMarkupIntoSink(
    sink: sink,
    builderFn: builderFn,
    domValidator: domValidator,
  );
  return sink.toString();
}