attributes property Null safety

Map<String, String> attributes

All attributes on this element.

Any modifications to the attribute map will automatically be applied to this element.

This only includes attributes which are not in a namespace (such as 'xlink:href'), additional attributes can be accessed via getNamespacedAttributes.


Map<String, String> get attributes => new _ElementAttributeMap(this);
void attributes=(Map<String, String> value)


set attributes(Map<String, String> value) {
  Map<String, String> attributes = this.attributes;
  for (String key in value.keys) {
    attributes[key] = value[key]!;