render method

  1. @override
HTMLElement render()
override

Creates an HTML Element represention of Component.

Implementation

@override
HTMLElement render() {
  final element = super.render() as HTMLElement;
  stream.listen((data) {
    clear();
    element.append(builder(data).render());
  });

  if (initial != null && initial is T) {
    element.append(builder(initial as T).render());
  }

  return element;
}