setAttribute method

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

Implementation

void setAttribute(final String key, final Object value) {
  attributes ??= <String, dynamic>{};
  attributes?[key] = value;
}