void ifAbsent(String name, String value)

Sets the attribute name to the given value if it was not present.

Throws an ArgumentError if name or value is null.

Source

void ifAbsent(String name, String value);