attributeChangedCallback method

  1. @override
void attributeChangedCallback(
  1. String name,
  2. String? oldValue,
  3. String? newValue
)
override

Implementation

@override
void attributeChangedCallback(
  String name,
  String? oldValue,
  String? newValue,
) {
  super.attributeChangedCallback(name, oldValue, newValue);
  if (observedAttributes.contains(name)) {
    if (_attrs.containsKey(name)) {
      _attrs[name]!.value = newValue;
    }
  }
}