setAttribute method

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

Implementation

@override
void setAttribute(String key, String value) {
  super.setAttribute(key, value);

  switch (key) {
    case SRC: src = attributeToProperty<String>(value); break;
    case WIDTH: width = attributeToProperty<double>(value); break;
    case HEIGHT: height = attributeToProperty<double>(value); break;
  }
}