renderMarkupIntoSink<S> function

void renderMarkupIntoSink<S>({
  1. required StringSink sink,
  2. required DomBuilderFn builderFn,
  3. DomValidator? domValidator,
})

Render markup into a String Sink.

Implementation

void renderMarkupIntoSink<S>({
  required StringSink sink,
  required DomBuilderFn builderFn,
  DomValidator? domValidator,
}) {
  final builder = _DomBuilder(sink, domValidator ?? _defaultDomValidator);
  builderFn(builder);
  builder._assertClosedState();
}