setAttribute method

void setAttribute(
  1. String key,
  2. Object? value
)

Records one attribute.

Implementation

void setAttribute(String key, Object? value) => attributes[key] = value;