setProperty method

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

Implementation

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

  if (key == SRC) {
    String? url = value;
    initialUrl = url;

    if (renderer != null) {
      _setupRenderer();
    }
  } else if (key == WIDTH || key == HEIGHT) {
    setStyle(key, value);
  }
}