void operator []=(String name, String value)

Sets the attribute name to the given value.

If the attribute was already present, its value will be overwritten.

Throws an ArgumentError if name or value is null.

Source

void operator []=(String name, String value);