add method

void add(
  1. Attribute attribute
)

Add an Attribute attribute. If an Attribute with the same key already exists, it will be overwritten.

Implementation

void add(Attribute attribute) {
  _attributes[attribute.key] = attribute.value;
}