setAttribute method

  1. @override
void setAttribute(
  1. String qualifiedName,
  2. String value
)
override

Implementation

@override
void setAttribute(String qualifiedName, String value) {
  super.setAttribute(qualifiedName, value);
  switch (qualifiedName) {
    case 'src': src = attributeToProperty<String>(value); break;
    case 'async': async = attributeToProperty<bool>(value); break;
    case 'defer': defer = attributeToProperty<bool>(value); break;
    case 'type': type = attributeToProperty<String>(value); break;
    case 'charset': charset = attributeToProperty<String>(value); break;
    case 'text': text = attributeToProperty<String>(value); break;
  }
}