observedAttributes property

List<String> get observedAttributes

Returns a list of attribute names to observe for changes.

Override this in subclasses to react to attribute changes. When an observed attribute changes, attributeChangedCallback is called.

Note: Use lowercase attribute names (HTML normalizes to lowercase).

Example

@override
List<String> get observedAttributes => ['disabled', 'count', 'label'];

Implementation

List<String> get observedAttributes => const [];