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 'loading': loading = attributeToProperty<String>(value); break;
    case 'width': width = attributeToProperty<int>(value); break;
    case 'height': height = attributeToProperty<int>(value); break;
    case 'scaling': scaling = attributeToProperty<String>(value); break;
  }
}