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