$uiSVG function
DOMElement tag ui-svg
for UISVG.
Implementation
DOMElement $uiSVG({
id,
String? field,
classes,
style,
String? src,
width,
height,
color,
title,
Map<String, String>? attributes,
content,
bool commented = false,
}) {
return $tag(
'ui-svg',
id: id,
classes: classes,
style: style,
attributes: {
if (field != null && field.isNotEmpty) 'field': field,
if (src != null) 'src': src,
if (width != null) 'width': '$width',
if (height != null) 'height': '$height',
if (color != null) 'color': '$color',
if (title != null) 'title': '$title',
...?attributes
},
content: content,
commented: commented,
);
}