render method

  1. @override
Element render()
override

Creates an HTML Element represention of Component.

Implementation

@override
Element render() {
  final element = super.render();
  if (text != null) {
    element.text = text!;
  }

  return element;
}