$uiSVG function

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

DOMElement tag ui-svg for UISVG.

Implementation

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