render method
Creates an HTML Element represention of Component.
Implementation
@override
Element render() {
final element = super.render();
element.setAttribute('src', src);
if (poster != null) element.setAttribute('poster', poster!);
if (alt != null) element.setAttribute('alt', alt!);
if (width != null) element.setAttribute('width', width!);
if (height != null) element.setAttribute('height', height!);
if (onLoad != null) element.onLoad.listen((event) => onLoad!(event));
if (onError != null) element.onError.listen((event) => onError!(event));
if (onAbort != null) element.onAbort.listen((event) => onAbort!(event));
return element;
}