validateAttributeName method

  1. @override
void validateAttributeName(
  1. String name
)
override

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.');
  }
}