validateAttributeName method
Implementation
@override
void validateAttributeName(String name) {
if (_attrs.contains(name)) return;
if (_attributeRegExp.matchAsPrefix(name) != null) {
_attrs.add(name);
} else {
throw ArgumentError('"$name" is not a valid attribute name.');
}
}