render method

  1. @override
Element render()
override

Creates an HTML Element represention of Component.

Implementation

@override
Element render() {
  final element = super.render() as HTMLInputElement;
  element.type = type.name;

  if (controller != null) {
    controller!.input = element;
  }

  if (name != null) {
    element.name = name!;
  }

  if (placeholder != null) {
    element.placeholder = placeholder!;
  }

  return element;
}