getElementSRC function
Returns src
value for different Element types.
Implementation
String? getElementSRC(Element element) {
if (element is ImageElement) return element.src;
if (element is ScriptElement) return element.src;
if (element is InputElement) return element.src;
if (element is MediaElement) return element.src;
if (element is EmbedElement) return element.src;
if (element is IFrameElement) return element.src;
if (element is SourceElement) return element.src;
if (element is TrackElement) return element.src;
if (element is ImageButtonInputElement) return element.src;
return null;
}