setAttribute method

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

Implementation

@mustCallSuper
@override
void setAttribute(String key, value) {
  super.setAttribute(key, value);
  bool shouldRebuild = shouldElementRebuild(key, getAttribute(key), value);
  if (_state != null && shouldRebuild) {
    _state!.requestUpdateState();
  }
  attributeDidUpdate(key, value);
}