setAttr method
Sets the Svg attributes for e
from a attr
.
Implementation
static void setAttr(Element el, Map<LegA, String> attr) {
attr.forEach((LegA key, String value) {
String skey = value.toString().split(".").last;
el.setAttribute(skey, value);
});
}