operator []= method

  1. @override
void operator []=(
  1. String name,
  2. String value
)

Sets the value of an attribute on the specified element.

If the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and value.

Implementation

@override
void operator []=(String name, String value) =>
    _element.attributes[name] = value;