setAttribute method

void setAttribute(
  1. String key,
  2. dynamic value
)

Sets a custom attribute.

Implementation

void setAttribute(String key, dynamic value) {
  _attributes[key] = value;
}