render method
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!;
}
element.onInput.listen((event) {
if (onChangeText != null) {
onChangeText!(element.value);
}
});
if (value != null) {
element.value = value!;
}
return element;
}