render method

  1. @override
Element render()
override

Renders the component for SSR (Server-Side Rendering).

Wraps the result of build in the component's custom element tag and includes a declarative shadow root template.

Note: Do not override this method in subclasses. Override build instead to define your component's content.

Implementation

@override
html.Element render() {
  final children = _buildWithStyles();
  return html.element(tagName, [
    html.template(shadowrootmode: 'open', children),
  ], attributes: dumpedAttributes);
}