hasAttribute method

bool hasAttribute(
  1. Attribute type
)

Returns true if the attribute with the specified name exists.

Implementation

bool hasAttribute(Attribute type) {
  return attributes[type.name] != null;
}