$uiSVG function

DOMElement $uiSVG({
  1. dynamic id,
  2. String? field,
  3. dynamic classes,
  4. dynamic style,
  5. String? src,
  6. dynamic width,
  7. dynamic height,
  8. dynamic color,
  9. dynamic title,
  10. Map<String, String>? attributes,
  11. dynamic content,
  12. bool commented = false,
})

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,
  );
}